Use this API to get details of the deployment job results based on the provided deployment job ID.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
deploymentJobId |
Mandatory |
string |
Specify the deployment job ID for which you want to fetch the results. |
filter |
Optional |
string |
Specify the QQL to filter jobs based on deployment jobs search criteria. For example, tags.name:"cloud agent" |
pageNumber |
Optional |
string |
The page to be returned. Default value: 0 |
pageSize |
Optional |
string |
Limit number of rows to be returned per page. Default value: 10 |
sort |
Optional |
string |
Sort the jobs by certain data. For example, [{"status":"asc"}] |
jobinstanceId |
Optional |
string |
Specify the job instance ID to get the deployment job results for a particular run of the deployment job. If you don't specify the job instance ID, the deployment job results for the latest job run are returned. |
API request
curl -X GET
"https://gateway.qg2.apps.qualys.com/pm/v1/deploymentjob/b6fd7a02-1b08-40d0-8504-2bb6bcc36ff8/deploymentjobresult/summary?jobInstanceId=21" -H "accept: application/json" -H "Authorization: Bearer <<jwt token>>"
Response
{
"id": "5eafc0e3-9343-47f2-9b54-bc5adcd97a19",
"name": "Win_liv_job_2",
"assetCount": 1,
"patchCount": 1,
"createdBy": "quays_xy1",
"createdOn": 1683032352431,
"assets": [
{
"asset": {
"id": "1caed7a7-9fee-4b7d-8df9-3351425a53ae",
"name": "DESKTOP-16CKNMD",
"operatingSystem": "Microsoft Windows 11 Enterprise 10.0.22621 64-bit N/A Build 22621 UBR 1265",
"tags": [
{
"id": "41c40798-fbc4-40f4-a9d6-b25a1ce2c495",
"name": null
},
{
"id": "7783b9a4-d8e5-46af-8121-81652314480b",
"name": null
}
],
"lastLoggedOnUser": "Administrator",
"successPatches": null,
"installedPatches": null,
"failedPatches": null,
"supersededPatches": null,
"notApplicablePatches": 0,
"executing": null,
"pendingExecution": null,
"pendingReboot": null,
"pendingVerification": null,
"jobInstanceId": 1,
"interfaces": [],
"skipPatchCount": null,
"additionalFields": null
},
"endDateTime": 0,
"startDateTime": 0,
"statusDateTime": 1683114601000,
"status": "Execution Blocked",
"statusCode": "20571",
"jobSentOn": 1682936401000,
"installed": null,
"failed": null,
"success": null,
"superseded": null,
"notApplicable": null,
"failedActionsCount": null,
"successfulActionsCount": null,
"interimResultStatus": null,
"jobInstanceId": 1,
"totalPatchCount": 0,
"runId": 0,
"scanDateTime": 1678448381595,
"pendingForRebootInAnotherJob": true,
"pendingForRebootInAnotherJobName": "job_1_Win_liv_02_may"
}
]
}