Fetch Report List API

Use this API to fetch the list of reports.

GET /sm/v1/reports

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

limit

Mandatory

Integer

Specify the number of reports.

Default value: 50

offset

Mandatory

Integer

Specify the number of reports to skip those reports in the response.

For example, if you set the limit to 50 and the offset to 10, the response will include reports from 41 to 50, skipping the first 10.

SampleSample

API Request

curl -X GET 
'<qualys_base_url>/sm/v1/reports?limit=50&offset=0'
--header 'Authorization: Bearer <JWT Token>'
--header 'Content-Type: application/json'

Response

{
  "list": [
    {
      "fileUuid": "4735c320-a0c2-11ef-add9-9be5caf4ae88",
      "resourceId": "45cfedbb-70dc-460e-b955-364be9ac5bb8",
      "resourceTag": "Script Job Report",
      "reportName": "Test Job Report",
      "fileFormat": "CSV",
      "templateName": "Script Job Report",
      "status": "COMPLETED",
      "fileSize": 674,
      "expireOn": "2024-12-12T06:49:35.000+00:00",
      "timezone": null,
      "description": "Test Job Report",
      "fileZipped": 0,
      "isScheduled": 0,
      "filename": "4735c320-a0c2-11ef-add9-    9be5caf4ae88_2024-11-12_06:49",
      "createdAt": "2024-11-12T06:49:35.000+00:00",
      "createdBy": "422036547"
    }
  ],
  "totalCount": 1,
  "message": "Successfully list fetched."
}