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.
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"
}