added

WAS: HTML and PDF Scan Exports

The Tenable.io Web Application Scanning v2 API now supports HTML and PDF scan exports. The HTML and PDF exports contain the list of targets, scan results, and scan notes.

This update affects the following endpoints:

API EndpointStatusChange
PUT /was/v2/scans/{scan_id}/reportUpdatedYou can now supply application/pdf or text/html in the Content-Type header when generating a scan report.
GET /was/v2/scans/{scan_id}/reportNewAdded new endpoint for downloading HTML, PDF, CSV, XML, and JSON scan exports.

Example

Generate a report

You can generate a PDF scan report for scan_id 51ed06fc-8645-4aee-9439-411329aa448f by using a Content-Type header of application/pdf when you make a request to PUT /was/v2/scans/{scan_id}/report:

curl --request PUT \
  --url https://cloud.tenable.com/was/v2/scans/51ed06fc-8645-4aee-9439-411329aa448f/report \
  --header 'accept: application/json' \
  --header 'content-type: application/pdf'

Download the report

Then you can download the PDF scan report for scan_id 51ed06fc-8645-4aee-9439-411329aa448f by using a Content-Type header of application/pdf when you make a request to GET /was/v2/scans/{scan_id}/report:

curl --request GET \
  --url https://cloud.tenable.com/was/v2/scans/51ed06fc-8645-4aee-9439-411329aa448f/report \
  --header 'accept: application/pdf' \
  --header 'content-type: application/pdf'

🛈 Note

A 404 Not Found is returned if the requested report is not yet ready for download.