Create and Get Patch Baselines

Creates and gets patch baselines.

Gets the list of patch baselines for a client.

Path Parameters

  • tenantIdstringrequired

    Describes the clientId of the tenant

Query Parameters

  • pageNointeger

    Default: 1

  • pageSizeinteger

    Default: 100

  • isDescendingOrderboolean

  • sortNamestring

    Default: name

  • queryStringstring

Responses

  • resultsarray

  • totalResultsinteger

  • orderBystring

  • pageNointeger

  • pageSizeinteger

  • totalPagesinteger

  • nextPageboolean

  • previousPageNointeger

  • descendingOrderboolean

Loading Examples...

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

  • tenantIdstringrequired

    Describes the clientId of the tenant

Request Body

application/json

  • idstring

  • namestring

    Unique name to identify a patch baseline.

  • descriptionstring

    Description of a patch baseline.

  • dynamicboolean

    - Provide "dynamic": false to create a static baseline. - Provide "dynamic": true to create a dynamic baseline.

  • installedIntgobject

    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" }

  • enabledboolean

  • createdUserobject

  • updatedUserobject

  • createdTimestring

  • updatedTimestring

  • policyobject

    Policy to define filter criteria for dynamic baselines

Loading Examples...

Responses

  • idstring

  • namestring

    Unique name to identify a patch baseline.

  • descriptionstring

    Description of a patch baseline.

  • dynamicboolean

    - Provide "dynamic": false to create a static baseline. - Provide "dynamic": true to create a dynamic baseline.

  • installedIntgobject

    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" }

  • enabledboolean

  • createdUserobject

  • updatedUserobject

  • createdTimestring

  • updatedTimestring

  • policyobject

    Policy to define filter criteria for dynamic baselines

Loading Examples...