Use this API to generate the patch insights report. The report is generated based on the "assetid" and "qid" combination that you provide.
From this report, you can get details about the patches that can remediate the QIDs.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
assetid |
Mandatory |
integer |
Enter the target asset ID. |
qid |
Mandatory |
integer |
Enter the qid that needs to be remediated for the assetid that you entered. |
API request
curl -X 'POST' \
'<qualys_base_url>/pm/v1/report/remediation/insights' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <<jwt token>>' \
-H 'Content-Type: application/json' \
-d '[
{
"assetId": 28695733,
"qid": 241298
}
]'
Response
{
"reportId": "e23a6bbc-8949-451c-ae4e-19fa281deada"
}