POST ioc_exports/{ioc_export}

Gets a CSV file that contains indicators exported from the indicators database according to parameters specified in an indicators export task.

Path

/ioc_exports/{ioc_export}

Method

POST

Request headers

This request has the following headers.

Request headers

Name

Value

Description

Authorization

string (base 64)

If authorization is enabled for the indicators export task, this string must contain the credentials specified in the settings of the indicators export task.

Request parameters

This request has the following parameters:

Request parameters

Name

Parameter type

Description

ioc_export

Path

Name of the indicators export task.

Request body

This request has an empty body.

Request example

The following is an example of a POST ioc_export request.

POST https://192.0.2.57/ioc_exports/ExampleExport

Authorization: Basic dXNlcjpwYXNzd29yZA==

Response headers

The response has the following headers.

Response headers

Name

Value

Description

Content-Type

text/csv

Response content type.

Content-Length

integer

Response body size, in bytes.

Content-Disposition

attachment;filename={ioc_export}.csv

Indicates that response content must be treated as attachment.

Response body

The response body contains a CSV string with exported indicators data.

#Column1;Column2

"Value_1_1";"Value_1_2"

"Value_2_1";"Value_2_2"

The first line of the response starts with '#', followed by column names. The column names are specified in the settings of the indicators export task.

Response example

The following is an example of a POST ioc_export request response.

НТТР/1.1 200 ОК

Date:Mon, 23 Dec 2019 09:56:10 UTC

Content-Type: text/csv

Content-Length: 99

Content-Disposition: attachment;filename=ExampleExport.csv

#ioc_type;ioc_value

"MD5";"FEAF2058298C1E174C2B79AFFC7CF4DF"

"SHA1";"D01D17F6B13C7255A234F558ED85078EA5DD3F3D"

Error responses

For more information about possible response statuses, see section "Response statuses".

An error response does not contain an error description.

Error response example

The following is an example of a POST ioc_export error response.

НТТР/1.1 500 Internal Server Error

Date:Mon, 23 Dec 2019 09:56:10 UTC

Content-Type: text/csv

Content-Length: 0

Page top