All Products
Search
Document Center

Operation Orchestration Service:ListPatchBaselines

Last Updated:Feb 07, 2023

Queries the details of patch baselines.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • 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 keyword: refers to the condition keyword defined by the cloud product itself.
  • 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.
Operateaccess levelResource typeconditional keywordAssociation operation
oos:ListPatchBaselinesLIST
  • OOS
    acs:oos:{#regionId}:{#accountId}:patchbaseline/*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The name of the patch baseline.

cn-hangzhou
NamestringNo

The type of the operating system. Valid values:

  • AliyunLinux
  • Windows
  • Ubuntu
  • Centos
  • Debian
  • RedhatEnterpriseLinux
  • Anolis
MyPatchBaseline
OperationSystemstringNo

The share type of the patch baseline.

AliyunLinux
ShareTypestringNo

The number of entries to return on each page.

Private
MaxResultsintegerNo

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

50
NextTokenstringNo

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

-

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The ID of the request.

gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC
RequestIdstring

The number of entries returned on each page.

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

The details of the patch baselines.

50
PatchBaselinesarray

The type of the operating system.

object
OperationSystemstring

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

AliyunLinux
IsDefaultboolean

The description of the patch baseline.

false
Descriptionstring

The time when the patch baseline was last modified.

ListPatchBaseline
UpdatedDatestring

The user who last modified the patch baseline.

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

The creator of the patch baseline.

root(130900000)
CreatedBystring

The time when the patch baseline was created.

root(130900000)
CreatedDatestring

The name of the patch baseline.

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

The ID of the patch baseline.

MyPatchBaseline
Idstring

The share type of the patch baseline.

pb-c2838b5d89b540e19ee6
ShareTypestring

Queries the details of patch baselines.

Private

Example

Normal return example

JSONFormat

{
  "NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
  "RequestId": "432996A1-03C0-5C4C-A8E6-66C4110765B8",
  "MaxResults": 50,
  "PatchBaselines": [
    {
      "OperationSystem": "AliyunLinux",
      "IsDefault": true,
      "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"
    }
  ]
}

Error codes

For a list of error codes, visit the API error center.