Retrieve a risk profile list

Use the sessionID to retrieve a list of risk profile Excel files for the session user. Pass the name of an Excel file in get_zones to retrieve the list of the security zones in each risk profile. If you have the name of the risk profile Excel file, it is not necessary to execute this API.

Resource Name: /afa/api/v1/security_zones/get_profiles_list

Request Method: GET

Authentication: Cookie with session ID

Header Requirements:

Element Type Description

sessionID

Mandatory

String Session ID returned in Login request.

Response:

Element Type Description

data

Array of String List of risk profile Excel file names for use in get_zones request.
status

String

One of the following:

  • true - Request succeeded.
  • false - Request failed.
message

String

An error message returned when request fails.

Request example

curl --cookie "PHPSESSID=g4mgnv4cno9ivt7rclmhmejj27" https://<IP:Port>/afa/api/v1/security_zones/get_profiles_list

Response example

[ "spreadsheet_2.xlsx", "1.xlsx" ]