All Products
Search
Document Center

CloudOps Orchestration Service:ListPatchBaselines

Last Updated:Mar 03, 2024

Queries a list of patch baselines.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.

-
Tagsobject []No

The tags.

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
PatchBaselinesobject []

The patch baselines.

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
Tagsobject []

The tags of the patch baseline.

TagKeystring

The key of the tag.

key
TagValuestring

The value of the tag.

value
ApprovedPatchesarray

The approved patches.

string

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.

string

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 changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ResourceGroupId
    delete Input Parameters: ResourceGroupld
Output ParametersThe response structure of the API has changed.
2023-08-23The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ResourceGroupld
Output ParametersThe response structure of the API has changed.
2023-07-21The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Tags
    Added Input Parameters: ApprovedPatches
    Added Input Parameters: ApprovedPatchesEnableNonSecurity
    Added Input Parameters: Sources
Output ParametersThe response structure of the API has changed.