Queries patch baselines.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:ListPatchBaselines |
list |
*PatchBaseline
|
|
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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token that is used to retrieve the next page of results. |
AAAAAV3MpHK1AP0pfERHZN5pu6l5V9uON**** |
| RequestId |
string |
The request ID. |
432996A1-03C0-5C4C-A8E6-66C4110765B8 |
| MaxResults |
integer |
The number of entries per page. |
50 |
| PatchBaselines |
array<object> |
The patch baselines. |
|
|
array<object> |
|||
| OperationSystem |
string |
The type of the operating system. |
AliyunLinux |
| IsDefault |
boolean |
Indicates whether the patch baseline is set as the default patch baseline. |
false |
| Description |
string |
The description of the patch baseline. |
ListPatchBaseline |
| UpdatedDate |
string |
The time when the patch baseline was updated. |
2021-09-08T03:44:34Z |
| UpdatedBy |
string |
The user who last updated the patch baseline. |
root(130900000) |
| CreatedBy |
string |
The user who created the patch baseline. |
root(130900000) |
| CreatedDate |
string |
The time when the patch baseline was created. |
2021-09-08T03:41:23Z |
| Name |
string |
The name of the patch baseline. |
MyPatchBaseline |
| Id |
string |
The ID of the patch baseline. |
pb-c2838b5d89b540e19ee6 |
| ShareType |
string |
The share type of the patch baseline. |
Private |
| Tags |
array<object> |
The tags of the patch baseline. |
|
|
object |
|||
| TagKey |
string |
The key of the tag. |
key |
| TagValue |
string |
The value of the tag. |
value |
| ApprovedPatches |
array |
The approved patches. |
|
|
string |
The name of the approved patch. |
ApprovedPatch1 |
|
| ApprovedPatchesEnableNonSecurity |
boolean |
Indicates whether the approved patch involves updates other than security-related updates. |
true |
| Sources |
array |
The configurations of patch sources. |
|
|
string |
The configurations of the patch source. |
[main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1 |
|
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek256ia6vhsndy |
Examples
Success response
JSON format
{
"NextToken": "-",
"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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.