Import trusted traffic rule from XLS

Import trusted traffic data from an MS Excel file. The excel file can only have one worksheet.

To see an example file, use the GET /trustedTraffic/firewalls/{firewallName}/export method.

End of file will be the first empty line in the file.

  • When the value of the last column Use_Existing_Trusted_Traffic_ID is false, data in the Trusted_Traffic_ID column is read-only.

  • When importing an MS Excel file, and the value in the Source and/or Destination column is in the format [hostgroup,hostgroup], the Use_Existing_Trusted_Traffic_Id parameter value must be set to True.

Resource Name: /api/v1/trustedTraffic/uploadTrustedTrafficFile

Request Method: POST

Request Parameters:

Element

Type

Description

excelFile

Mandatory

string

MS Excel filename. (format *.xlsx only).

Response:

Code

Description

200

Operation completed successfully

400

Validation error

401

Unauthorized

403 invalid exceptions
500 Internal server error

Request cURL examples

Import-curl -X POST "https://[machine IP]/afa/api/v1/trustedTraffic/uploadTrustedTrafficFile" -H "accept: */*" -H "Content-Type: multipart/form-data" -F "excelFile=@trusted_traffic - 2020-10-21T150717.263.xls;type=application/vnd.ms-excel"

Related topics

Trusted Traffic Data APIs