URL
POST https://{api-url}/api/v2/tenants/{tenantId}/patches/baselines/{baselineId}
Sample URLs
https://{api-url}/api/v2/tenants/client_16/patches/baselines/PBL-0c5d43b1-5633-423f-8d2d-6aa4c67a8cd0
Parameters
All fields are optional:
Field | Data Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | String | Unique name to identify a patch baseline. | |||||||||||||||
description | String | (Optional) Description of a patch baseline. | |||||||||||||||
dynamic | Boolean |
| |||||||||||||||
installedIntg
| Object | ID of an installed patch feed integration. Example: INTG-c1a2d041-062d-4950-8570-f9d5a4dc0c34To fetch ID of an installed patch feed integration:
| |||||||||||||||
policy
| Object | Filter criteria for dynamic baseline:
"policy": { "matchType": "ALL", "rules": [ { "key": "Rating", "operator": "Equals", "value": "Whitelisted" }, { "key": "Severity", "operator": "Contains", "value": "critical" } ] } |
Static baseline
Sample request
{
"name": "Windows_Patch_Feed",
"description": "Windows_Vulnerabilities",
"dynamic": true,
"installedIntg": {
"id": "INTG-c2f39b7b-ad25-11e8-924d-080027f0b4d6"
}
}
Sample response
{
"id": "PBL-bafd3744-9a59-4cd6-9825-00a0a5a54f6e",
"name": "Windows_Patch_Feed",
"description": "Windows_Vulnerabilities",
"dynamic": false,
"enabled": false,
"createdUser": {
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@myorganization.com"
},
"updatedUser": {
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@myorganization.com"
},
"createdTime": "2019-02-08T07:40:06+0000",
"updatedTime": "2019-02-08T09:11:19+0000",
"installedIntg": {
"id": "INTG-c2f39b7b-ad25-11e8-924d-080027f0b4d6",
"displayName": "Default Windows Feed",
"integration": {
"id": "WINDOWSPATCH",
"name": "Windows Patch Feed"
}
}
}
Dynamic baseline
Sample request
{
"name": "Linux_Patch_Baseline",
"description": "Linux_Patches_for_SJ_Devices",
"dynamic": true,
"policy": {
"matchType": "ALL",
"rules": [{
"key": "Category",
"operator": "Contains",
"value": "Updates"
}, {
"key": "Rating",
"operator": "Equals",
"value": "WHITELISTED"
}, {
"key": "Severity",
"operator": "Not Equals",
"value": "Critical"
}]
},
"installedIntg": {
"id": "INTG-35160619-ea2d-4450-8b8d-7c4bc51ebc92"
}
}
Sample response
{
"id": "PBL-198014e3-74c0-4e12-a6e1-c161d9003fd6",
"name": "Linux_Patch_Baseline",
"description": "Linux_Patches_for_SJ_Devices",
"dynamic": true,
"enabled": false,
"createdUser": {
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@myorganization.com"
},
"updatedUser": {
"loginName": "John.Smith",
"lastName": "Smith",
"firstName": "John",
"email": "john.smith@myorganization.com"
},
"createdTime": "2019-02-08T07:45:10+0000",
"updatedTime": "2019-02-08T09:18:21+0000",
"policy": {
"id": 663,
"uid": "POLICY-1308aebb-94a8-4bde-aed9-1dd4aafe78a8",
"matchType": "ALL",
"rules": [{
"id": 12514,
"key": "Category",
"operator": "Contains",
"value": "Updates",
"resourceType": "DEVICE"
},
{
"id": 12515,
"key": "Rating",
"operator": "Equals",
"value": "WHITELISTED",
"resourceType": "DEVICE"
},
{
"id": 12516,
"key": "Severity",
"operator": "Not Equals",
"value": "Critical",
"resourceType": "DEVICE"
}
],
"actions": []
},
"installedIntg": {
"id": "INTG-c2f39b7b-ad25-11e8-924d-080027f0b4d6",
"displayName": "Default Linux Feed",
"integration": {
"id": "LINUXPATCH",
"name": "Linux Patch Feed"
}
}
}