All Products
Search
Document Center

CloudOps Orchestration Service:ListPatchBaselines

Last Updated:Oct 14, 2024

Queries a list of patch baselines.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
oos:ListPatchBaselineslist
  • PatchBaseline
    acs:oos:{#regionId}:{#accountId}:patchbaseline/{#PatchBaselineName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region.

cn-hangzhou
NamestringNo

The name of the patch baseline.

MyPatchBaseline
OperationSystemstringNo

The type of the operating system. Valid values:

  • Windows
  • Ubuntu
  • CentOS
  • Debian
  • AliyunLinux
  • RedhatEnterpriseLinux
  • Anolis
  • AlmaLinux
AliyunLinux
ShareTypestringNo

The share type of the template. Valid values:

  • Public
  • Private
Private
MaxResultsintegerNo

The number of entries returned per page.

50
NextTokenstringNo

The token that is used to retrieve the next page of results.

-
Tagsarray<object>No

The tags.

objectNo

The tag.

KeystringNo

The key of the tag.

key
ValuestringNo

The value of the tag.

value
ApprovedPatchesarrayNo

The approved patches.

stringNo

The name of the approved patch.

ApprovedPatch1
ApprovedPatchesEnableNonSecuritybooleanNo

Specifies whether the approved patch involves updates other than security-related updates.

true
SourcesarrayNo

The patch source configurations.

stringNo

The configuration of the patch source.

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

The ID of the resource group.

rg-acfmxsn4m4******

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The token that is used to retrieve the next page of results.

The number of entries returned on each page.
RequestIdstring

The request ID.

432996A1-03C0-5C4C-A8E6-66C4110765B8
MaxResultsinteger

The number of entries per page.

50
PatchBaselinesarray<object>

The patch baselines.

PatchBaselineobject
OperationSystemstring

The type of the operating system.

AliyunLinux
IsDefaultboolean

Indicates whether the patch baseline is set as the default patch baseline.

false
Descriptionstring

The description of the patch baseline.

ListPatchBaseline
UpdatedDatestring

The time when the patch baseline was updated.

2021-09-08T03:44:34Z
UpdatedBystring

The user who last updated the patch baseline.

root(130900000)
CreatedBystring

The user who created the patch baseline.

root(130900000)
CreatedDatestring

The time when the patch baseline was created.

2021-09-08T03:41:23Z
Namestring

The name of the patch baseline.

MyPatchBaseline
Idstring

The ID of the patch baseline.

pb-c2838b5d89b540e19ee6
ShareTypestring

The share type of the patch baseline.

Private
Tagsarray<object>

The tags of the patch baseline.

Tagsobject
TagKeystring

The key of the tag.

key
TagValuestring

The value of the tag.

value
ApprovedPatchesarray

The approved patches.

ApprovedPatchesstring

The name of the approved patch.

ApprovedPatch1
ApprovedPatchesEnableNonSecurityboolean

Indicates whether the approved patch involves updates other than security-related updates.

true
Sourcesarray

The configurations of patch sources.

Sourcesstring

The configurations of the patch source.

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

The ID of the resource group.

rg-aek256ia6vhsndy

Examples

Sample success responses

JSONformat

{
  "NextToken": "The number of entries returned on each page.\n",
  "RequestId": "432996A1-03C0-5C4C-A8E6-66C4110765B8",
  "MaxResults": 50,
  "PatchBaselines": [
    {
      "OperationSystem": "AliyunLinux",
      "IsDefault": false,
      "Description": "ListPatchBaseline",
      "UpdatedDate": "2021-09-08T03:44:34Z",
      "UpdatedBy": "root(130900000)",
      "CreatedBy": "root(130900000)",
      "CreatedDate": "2021-09-08T03:41:23Z",
      "Name": "MyPatchBaseline",
      "Id": "pb-c2838b5d89b540e19ee6",
      "ShareType": "Private",
      "Tags": [
        {
          "TagKey": "key",
          "TagValue": "value"
        }
      ],
      "ApprovedPatches": [
        "ApprovedPatch1"
      ],
      "ApprovedPatchesEnableNonSecurity": true,
      "Sources": [
        "[main]\nname=MyCustomRepository\nbaseurl=https://my-custom-repository\nenabled=1"
      ],
      "ResourceGroupId": "rg-aek256ia6vhsndy"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-14The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-08-23The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-07-21The request parameters of the API has changed. The response structure of the API has changedView Change Details