Download Report Using Report Id

Use this API to download the report using the report Id.

Note:

-  The success response of this API is the report file is successfully downloaded.

-  The responses in case of report download failure or report processing is not finished are mentioned in the response section.

GET/audit-log/admin/report/download?reportId=1&reportName=testReport

Sample - Download report using the report IdSample - Download report using the report Id

API request

 curl --location --request GET 'https://<QualysBaseURL>
/audit-log/admin/report/download?reportId=<reportID>' \
--header 'Authorization: Bearer < JWT Token >' \
--header 'Content-Type: application/json' \
--header 'Accept:  */*' \
--data-raw ''

Response (If the report processing is not finished)

{
  "error": "Report generation not yet completed for Report: 1"
}

Response (If the report processing is failed)

{
  "error": Report generation has failed for  Report: 1"
}