Get List of Generated Reports

Use this API to fetch a list of recently triggered reports.

GET/pm/v1/reports

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

limit

Optional

string

Specify the number of reports to return.

Default value: 5

Sample - Get a list of recently triggered reportsSample - Get a list of recently triggered reports

API request

    
        curl -X GET 
        "https://<QualysBaseURL>/pm/v1/reports?limit=5" -H "accept: application/json" -H "Authorization: Bearer <<jwt token>>"
    

Response

    
       [
    {
        "reportId": "7cfb30e0-7b99-4735-8935-172efee8aeaf",
        "type": "ASSET",
        "createdDate": 1642668577917,
        "expirationDate": 1643273377917,
        "status": 1,
        "queryHavingQuery": "(missingPatchCount>1) and (patchStatus:[Missing] and isSuperseded:false) AND isRollback:true",
        "fileSize": "31.60 KB"
    },
    {
        "reportId": "20cc8ae1-2df7-47fa-9e31-28fdd6e2b3a8",
        "type": "PATCH",
        "createdDate": 1642496101954,
        "expirationDate": 1643100901954,
        "status": 1,
        "queryHavingQuery": "isRollback:true and (patchStatus: [Missing] and isSuperseded: false) AND missingPatchCount>12",
        "fileSize": "27.58 KB"
    },
    {
        "reportId": "5fa7d2e5-e7be-47a8-8ffe-20c200c528e0",
        "type": "ASSET",
        "createdDate": 1642495876471,
        "expirationDate": 1643100676471,
        "status": 1,
        "queryHavingQuery": "(missingPatchCount>12) and (patchStatus:[Missing] and isSuperseded:false) AND isRollback: true",
        "fileSize": "34.06 KB"
    },
    {
        "reportId": "165c3f2e-1882-4ced-baee-d3734bd5cc18",
        "type": "ASSET",
        "createdDate": 1642495766699,
        "expirationDate": 1643100566699,
        "status": 1,
        "queryHavingQuery": "(missingPatchCount>12) and (patchStatus:[Missing] and isSuperseded:false) AND isRollback: true",
        "fileSize": "31.60 KB"
    },
    {
        "reportId": "44f91c53-a25a-4f1c-958e-01e052c902c3",
        "type": "JOB_PROGRESS",
        "createdDate": 1642488533253,
        "expirationDate": 1643093333253,
        "status": 1,
        "queryHavingQuery": "(jobId:6f490931-ae5c-432b-8157-e30b7d85fc52) AND (asset.tags.id.name:Mock)",
        "fileSize": "1.33 KB"
    }
]