Queries a list of patch baselines.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
oos:ListPatchBaselines | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region. | cn-hangzhou |
Name | string | No | The name of the patch baseline. | MyPatchBaseline |
OperationSystem | string | No | The type of the operating system. Valid values:
| AliyunLinux |
ShareType | string | No | The share type of the template. Valid values:
| Private |
MaxResults | integer | No | The number of entries returned per page. | 50 |
NextToken | string | No | The token that is used to retrieve the next page of results. | - |
Tags | array<object> | No | The tags. | |
object | No | The tag. | ||
Key | string | No | The key of the tag. | key |
Value | string | No | The value of the tag. | value |
ApprovedPatches | array | No | The approved patches. | |
string | No | The name of the approved patch. | ApprovedPatch1 | |
ApprovedPatchesEnableNonSecurity | boolean | No | Specifies whether the approved patch involves updates other than security-related updates. | true |
Sources | array | No | The patch source configurations. | |
string | No | The configuration of the patch source. | [main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1 | |
ResourceGroupId | string | No | The ID of the resource group. | rg-acfmxsn4m4****** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|---|---|
2023-09-14 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-08-23 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-07-21 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |