URL
POST https://{api-url}/api/v2/tenants/{tenantId}/patches/baselines
Sample URLs
To retrieve the list of all baselines:
https://{api-url}/api/v2/tenants/client_14/resources/patches/baselines
To retrieve the list of all baselines with pagination in descending and alphabetical order:
https://{api-url}/api/v2/tenants/client_14/resources/patches/baselines?pageNo=1&pageSize=10&isDescendingOrder=true&sortName=name
More information is available on patch baselines.
Parameters
All parameters are optional:
Field | Default Value |
---|---|
pageNo={pageNo} | 1 |
pageSize={pageSize} | 100 |
isDescendingOrder={true/false} | true |
sortName={field} | name |
queryString={queryString} | NA |
NA indicates that the value is not applicable.
Notes
There are special characters that can be used in a query string:
- (+) represents the next field and must be URL-encoded.
- (:) represents equals. An example is
key : value
. - Space characters must be URL-encoded.
- Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).
Sample response
{
"results": [
{
"approvalStatus": "NOT_APPROVED",
"patchStatus": "MISSING",
"installedStatus": "NEED_TO_INSTALL",
"scanTime": "2019-05-29T08:56:11+0000",
"installedTime": "",
"approvedTime": "",
"patch": {
"id": "PATCH-6ca40150-56b1-12ca-2b15-22a6ea787790",
"name": "Dummy Patch Name0",
"externalId": "10000",
"category": "Critical Updates - Windows 7",
"releaseTime": "2019-05-29T08:53:22+0000",
"type": "WINDOWS",
"rebootRequired": false,
"rating": {
"rating": "TESTING"
}
},
"resource": {
"id": "bae45962-981e-4611-bfef-b272c8d8aa87",
"hostName": "",
"ipAddress": "172.31.26.40",
"type": "Windows",
"aliasName": "alias name",
"resourceName": "172.31.26.40",
"consoles": [],
"resourceType": "Windows",
"frequency": 0,
"paused": false,
"deleted": false,
"validateSSL": false,
"port": 0,
"encrypted": false,
"timeout": 0,
"days": 0,
"ts": 0,
"clientId": 0,
"locationOffset": 0,
"totalLocations": 0,
"receiverHostPort": 0
}
}
],
"totalResults": 1,
"orderBy": "id",
"pageNo": 1,
"pageSize": 100,
"totalPages": 1,
"nextPage": false,
"previousPageNo": 0,
"descendingOrder": true
}