Export scan

POST {{baseUrl}}/scans/:scan_id/export?history_id=67454373&history_uuid=de19fad8-3fc4-eb16-cd67-d443d05a04aa

Export the specified scan. To see the status of the requested export, submit an export status request. On receiving a ready status from the export-status request, download the export file using the export download method.

Note: If you request a scan export in the nessus file format, but do not specify filters for the export, Tenable.io truncates the plugins output data in the export file at 5 MB or 5,000,000 characters, and appends TRUNCATED (bracketed by three asterisks) at the end of the output in the export file. You can obtain the full plugins output by exporting the scan in any other file format than nessus.

Requires SCAN OPERATOR [24] user permissions and CAN VIEW [16] scan permissions. See Permissions.

Request Params

KeyDatatypeRequiredDescription
history_idnumberThe unique identifier of the historical data that you want Tenable.io to export. This identifier corresponds to the history.id attribute of the response message from the GET /scans/{scan_id}/history endpoint.
history_uuidstringThe UUID of the historical data that you want Tenable.io to return. This identifier corresponds to the history.scan_uuid attribute of the response message from the GET /scans/{scan_id}/history endpoint.

Request Body

{"format"=>"db", "password"=>"ullamco eu in", "chapters"=>"ad id", "filter.0.filter"=>"fugiat dolor officia", "filter.0.quality"=>"consequat eiusmod labore", "filter.0.value"=>"et eiusmod", "filter.search_type"=>"or", "asset_id"=>"dolor est pariatur aute"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"file":778874546,"temp_token":"995bdb656fc6dc5d76e18ccafe7fbd390618fcd0257e0e1aa121f4412a6f7ecc"}