URL
GET https://{api-url}/api/v2/tenants/{tenantId}/resources/{resourceId}/patches/install/status
Sample URLs
https://{api-url}/api/v2/tenants/client_16/resources/2ca44d27-888e-4ddb-a5ee-89eb962798fe/patches/install/status
Patching status of a device provides the details of the most recent patches performed on a device. This API is used to retrieve the following details of patching performed on a device (or devices):
- Completion status of the patch
- Status of machine reboot
- Last patch installation date
- Last reboot time of the machine
Status code
200 OK
Sample response
{
"device": {
"id": "2ca44d27-888e-4ddb-a5ee-89eb962798fe",
"generalInfo": {
"osName": "Ubuntu 14.04.5 LTS",
"ipAddresses": "10.0.4.15",
"hostName": "opsrampdev",
"resourceType": "Linux",
"resourceName": "",
"aliasName": ""
},
"clientUniqueId": "client_16",
"type": "DEVICE"
},
"installStatus": {
"lastPatchTriggeredDate": "2019-06-21T13:51:39+0000",
"lastPatchInstalledDate": "2019-06-21T13:56:10+0000",
"lastMachineRebootDate": "2019-06-24T19:42:18+0000"
}
}