Updates a patch baseline.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:UpdatePatchBaseline |
update |
*patchbaseline
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region. |
cn-hangzhou |
| Name |
string |
Yes |
The name of the patch baseline. |
MyPatchBaseline |
| Description |
string |
No |
The description of the patch baseline. |
UpdatePatchBaseline |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. |
- |
| ApprovalRules |
string |
No |
The rules of scanning and installing patches for the specified operating system. |
{"PatchRules":[{"PatchFilterGroup":[{"Key":"PatchSet","Values":["OS"]},{"Key":"ProductFamily","Values":["Windows"]},{"Key":"Product","Values":["Windows 10","Windows 7"]},{"Key":"Classification","Values":["Security Updates","Updates","Update Rollups","Critical Updates"]},{"Key":"Severity","Values":["Critical","Important","Moderate"]}],"ApproveAfterDays":7,"EnableNonSecurity":true,"ComplianceLevel":"Medium"}]} |
| RejectedPatches |
array |
No |
The rejected patches. |
|
|
string |
No |
The name of the rejected patch. |
RejectedPatch1 |
|
| RejectedPatchesAction |
string |
No |
The action of the rejected patch. |
ALLOW_AS_DEPENDENCY |
| ApprovedPatches |
array |
No |
The approved patches. |
|
|
string |
No |
The name of the approved patch. |
ApprovedPatch1 |
|
| ApprovedPatchesEnableNonSecurity |
boolean |
No |
Indicates 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 |
|
| Tags |
array<object> |
No |
The tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the tag. |
key |
| Value |
string |
No |
The value of the tag. |
value |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmxsn4m4****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
1457F46C-7AAE-59FA-BD12-0BDB3751E6F8 |
| PatchBaseline |
object |
The details of the patch baseline. |
|
| OperationSystem |
string |
The operating system. |
Windows |
| Description |
string |
The description of the patch baseline. |
UpdatePatchBaseline |
| UpdatedDate |
string |
The time when the patch baseline was updated. |
2021-09-08T07:26:37Z |
| UpdatedBy |
string |
The user who updated the patch baseline. |
root(130900000) |
| CreatedBy |
string |
The creator of the patch baseline. |
root(130900000) |
| CreatedDate |
string |
The time when the patch baseline was created. |
2021-09-07T03:42:56Z |
| Name |
string |
The name of the patch baseline. |
MyPatchBaseline |
| ApprovalRules |
string |
The rules of scanning and installing patches for the specified operating system. |
{"PatchRules":[{"PatchFilterGroup":[{"Key":"PatchSet","Values":["OS"]},{"Key":"ProductFamily","Values":["Windows"]},{"Key":"Product","Values":["Windows 10","Windows 7"]},{"Key":"Classification","Values":["Security Updates","Updates","Update Rollups","Critical Updates"]},{"Key":"Severity","Values":["Critical","Important","Moderate"]}],"ApproveAfterDays":7,"EnableNonSecurity":true,"ComplianceLevel":"Medium"}]} |
| Id |
string |
The ID of the patch baseline. |
pb-445340b5c6504a85a300 |
| ShareType |
string |
The share type of the patch baseline. |
Private |
| RejectedPatches |
array |
The rejected patches. |
|
|
string |
The name of the rejected patch. |
RejectedPatch1 |
|
| RejectedPatchesAction |
string |
The action of the rejected patch. |
ALLOW_AS_DEPENDENCY |
| 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 patch source configurations. |
|
|
string |
The configuration of the patch source. |
[main] name=MyCustomRepository baseurl=https://my-custom-repository enabled=1 |
|
| Tags |
array<object> |
The tags. |
|
|
object |
|||
| TagKey |
string |
The key of the tag. |
key |
| TagValue |
string |
The value of the tag. |
value |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmy2zdbbjplii |
Examples
Success response
JSON format
{
"RequestId": "1457F46C-7AAE-59FA-BD12-0BDB3751E6F8",
"PatchBaseline": {
"OperationSystem": "Windows",
"Description": "UpdatePatchBaseline",
"UpdatedDate": "2021-09-08T07:26:37Z",
"UpdatedBy": "root(130900000)",
"CreatedBy": "root(130900000)",
"CreatedDate": "2021-09-07T03:42:56Z",
"Name": "MyPatchBaseline",
"ApprovalRules": "{\"PatchRules\":[{\"PatchFilterGroup\":[{\"Key\":\"PatchSet\",\"Values\":[\"OS\"]},{\"Key\":\"ProductFamily\",\"Values\":[\"Windows\"]},{\"Key\":\"Product\",\"Values\":[\"Windows 10\",\"Windows 7\"]},{\"Key\":\"Classification\",\"Values\":[\"Security Updates\",\"Updates\",\"Update Rollups\",\"Critical Updates\"]},{\"Key\":\"Severity\",\"Values\":[\"Critical\",\"Important\",\"Moderate\"]}],\"ApproveAfterDays\":7,\"EnableNonSecurity\":true,\"ComplianceLevel\":\"Medium\"}]}",
"Id": "pb-445340b5c6504a85a300",
"ShareType": "Private",
"RejectedPatches": [
"RejectedPatch1"
],
"RejectedPatchesAction": "ALLOW_AS_DEPENDENCY",
"ApprovedPatches": [
"ApprovedPatch1"
],
"ApprovedPatchesEnableNonSecurity": true,
"Sources": [
"[main]\nname=MyCustomRepository\nbaseurl=https://my-custom-repository\nenabled=1"
],
"Tags": [
{
"TagKey": "key",
"TagValue": "value"
}
],
"ResourceGroupId": "rg-acfmy2zdbbjplii"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.