All Products
Search
Document Center

CloudOps Orchestration Service:UpdatePatchBaseline

Last Updated:Sep 02, 2026

Updates a patch baseline.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

oos:UpdatePatchBaseline

update

*patchbaseline

acs:oos:{#regionId}:{#accountId}:patchbaseline/{#patchbaselineName}

  • oos:TLSVersion
None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID.

cn-hangzhou

Name

string

Yes

The name of the patch baseline.

MyPatchBaseline

Description

string

No

The description of the patch baseline.

UpdatePatchBaseline

ClientToken

string

No

The idempotence token.

-

ApprovalRules

string

No

The acceptance rules.

{"PatchRules":[{"PatchFilterGroup":[{"Key":"PatchSet","Values":["OS"]},{"Key":"ProductFamily","Values":["Windows"]},{"Key":"Product","Values":["Windows 10","Windows 7"]},{"Key":"Classification","Values":["Security Updates","Updates","Update Rollups","Critical Updates"]},{"Key":"Severity","Values":["Critical","Important","Moderate"]}],"ApproveAfterDays":7,"EnableNonSecurity":true,"ComplianceLevel":"Medium"}]}

RejectedPatches

array

No

The list of rejected patches.

string

No

The list of rejected patches.

RejectedPatch1

RejectedPatchesAction

string

No

The action to take on rejected patches.

ALLOW_AS_DEPENDENCY

ApprovedPatches

array

No

The list of approved patches.

string

No

The name of the approved patch.

ApprovedPatch1

ApprovedPatchesEnableNonSecurity

boolean

No

Specifies whether approved patches include non-security updates.

true

Sources

array

No

The list of patch source configurations.

string

No

The patch source configuration.

[main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1

Tags

array<object>

No

The tags.

object

No

The tags.

Key

string

No

The tag key.

key

Value

string

No

The tag value.

value

ResourceGroupId

string

No

The resource group ID.

rg-acfmxsn4m4******

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

1457F46C-7AAE-59FA-BD12-0BDB3751E6F8

PatchBaseline

object

The details of the patch baseline.

OperationSystem

string

The operating system type.

Windows

Description

string

The description of the patch baseline.

UpdatePatchBaseline

UpdatedDate

string

The update date.

2021-09-08T07:26:37Z

UpdatedBy

string

The user who updated the patch baseline.

root(130900000)

CreatedBy

string

The user who created the patch baseline.

root(130900000)

CreatedDate

string

The creation date.

2021-09-07T03:42:56Z

Name

string

The name of the patch baseline.

MyPatchBaseline

ApprovalRules

string

The acceptance rules.

{"PatchRules":[{"PatchFilterGroup":[{"Key":"PatchSet","Values":["OS"]},{"Key":"ProductFamily","Values":["Windows"]},{"Key":"Product","Values":["Windows 10","Windows 7"]},{"Key":"Classification","Values":["Security Updates","Updates","Update Rollups","Critical Updates"]},{"Key":"Severity","Values":["Critical","Important","Moderate"]}],"ApproveAfterDays":7,"EnableNonSecurity":true,"ComplianceLevel":"Medium"}]}

Id

string

The ID of the patch baseline.

pb-445340b5c6504a85a300

ShareType

string

The sharing type of the patch baseline.

Private

RejectedPatches

array

The list of rejected patches.

string

The name of the rejected patch.

RejectedPatch1

RejectedPatchesAction

string

The action to take on rejected patches.

ALLOW_AS_DEPENDENCY

ApprovedPatches

array

The list of approved patches.

string

The name of the approved patch.

ApprovedPatch1

ApprovedPatchesEnableNonSecurity

boolean

Specifies whether approved patches include non-security updates.

true

Sources

array

The list of patch source configurations.

string

The patch source configuration.

[main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1

Tags

array<object>

The tags.

object

The tags.

TagKey

string

The tag key.

key

TagValue

string

The tag value.

value

ResourceGroupId

string

The resource group ID.

rg-acfmy2zdbbjplii

Examples

Success response

JSON format

{
  "RequestId": "1457F46C-7AAE-59FA-BD12-0BDB3751E6F8",
  "PatchBaseline": {
    "OperationSystem": "Windows",
    "Description": "UpdatePatchBaseline",
    "UpdatedDate": "2021-09-08T07:26:37Z",
    "UpdatedBy": "root(130900000)",
    "CreatedBy": "root(130900000)",
    "CreatedDate": "2021-09-07T03:42:56Z",
    "Name": "MyPatchBaseline",
    "ApprovalRules": "{\"PatchRules\":[{\"PatchFilterGroup\":[{\"Key\":\"PatchSet\",\"Values\":[\"OS\"]},{\"Key\":\"ProductFamily\",\"Values\":[\"Windows\"]},{\"Key\":\"Product\",\"Values\":[\"Windows 10\",\"Windows 7\"]},{\"Key\":\"Classification\",\"Values\":[\"Security Updates\",\"Updates\",\"Update Rollups\",\"Critical Updates\"]},{\"Key\":\"Severity\",\"Values\":[\"Critical\",\"Important\",\"Moderate\"]}],\"ApproveAfterDays\":7,\"EnableNonSecurity\":true,\"ComplianceLevel\":\"Medium\"}]}",
    "Id": "pb-445340b5c6504a85a300",
    "ShareType": "Private",
    "RejectedPatches": [
      "RejectedPatch1"
    ],
    "RejectedPatchesAction": "ALLOW_AS_DEPENDENCY",
    "ApprovedPatches": [
      "ApprovedPatch1"
    ],
    "ApprovedPatchesEnableNonSecurity": true,
    "Sources": [
      "[main]\nname=MyCustomRepository\nbaseurl=https://my-custom-repository\nenabled=1"
    ],
    "Tags": [
      {
        "TagKey": "key",
        "TagValue": "value"
      }
    ],
    "ResourceGroupId": "rg-acfmy2zdbbjplii"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.