Create and Get Patch Baselines
Creates and gets patch baselines.
Gets the list of patch baselines for a client.
Path Parameters
- tenantId
Describes the clientId of the tenant
Query Parameters
- pageNo
Default: 1
- pageSize
Default: 100
- isDescendingOrder
- sortName
Default: name
- queryString
Responses
- results
- totalResults
- orderBy
- pageNo
- pageSize
- totalPages
- nextPage
- previousPageNo
- descendingOrder
A patch baseline is a collection of patches that are approved for installation on your instances. From a given feed, the user selects a subset of the packages that address the key vulnerabilities. The chosen set of packages form the patch baseline. As a prerequisite, create a patch feed before creating a baseline.
Notes
On using policy based rules for having Filter criteria for dynamic baseline:
- Match type for the rules. Supported value: ALL. Patches which match all the rules in the filter criteria are added to the baseline.
- Filter patches with the following rules:
- "key": Provide the attributes of a patch.Supported keys: Category, Cve, Rating, Severity
- "operator" : As listed
- "Rating" key supports only (Equals, Not Equals) operator with supported values (Whitelisted, Blacklisted)
- "value"
For example, to filter patches which are whitelisted and are critical, provide the fields as shown below:
"policy": {
"matchType": "ALL",
"rules": [
{ "key": "Rating", "operator": "Equals", "value": "Whitelisted" },
{ "key": "Severity", "operator": "Contains", "value": "critical" }
]
}
Path Parameters
- tenantId
Describes the clientId of the tenant
Request Body
application/json
- id
- name
Unique name to identify a patch baseline.
- description
Description of a patch baseline.
- dynamic
- Provide "dynamic": false to create a static baseline. - Provide "dynamic": true to create a dynamic baseline.
- installedIntg
ID of an installed patch feed integration. Example: INTG-c1a2d041-062d-4950-8570-f9d5a4dc0c34To fetch ID of an installed patch feed integration: 1. Log into OpsRamp. 2. Click All Clients and then select the required client. 3. On the drop-down menu, click Setup. 4. On the left-hand side panel, click Integrations, click Available Integrations and click on an installed patch feed integration. 5. Copy the UID. 6. Paste the UID in the id field of the request payload. Example: "installedIntg": { "id": "INTG-c2f39b7b-ad25-11e8-924d-080027f0b4d6" }
- enabled
- createdUser
- updatedUser
- createdTime
- updatedTime
- policy
Policy to define filter criteria for dynamic baselines
Responses
- id
- name
Unique name to identify a patch baseline.
- description
Description of a patch baseline.
- dynamic
- Provide "dynamic": false to create a static baseline. - Provide "dynamic": true to create a dynamic baseline.
- installedIntg
ID of an installed patch feed integration. Example: INTG-c1a2d041-062d-4950-8570-f9d5a4dc0c34To fetch ID of an installed patch feed integration: 1. Log into OpsRamp. 2. Click All Clients and then select the required client. 3. On the drop-down menu, click Setup. 4. On the left-hand side panel, click Integrations, click Available Integrations and click on an installed patch feed integration. 5. Copy the UID. 6. Paste the UID in the id field of the request payload. Example: "installedIntg": { "id": "INTG-c2f39b7b-ad25-11e8-924d-080027f0b4d6" }
- enabled
- createdUser
- updatedUser
- createdTime
- updatedTime
- policy
Policy to define filter criteria for dynamic baselines