Registers the default patch baseline.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:RegisterDefaultPatchBaseline |
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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D6850689-348D-59FC-AE13-BB0EDB7C4BE8 |
| PatchBaseline |
object |
The details of the patch baseline. |
|
| OperationSystem |
string |
The operating system. |
Windows |
| Description |
string |
The description of the patch baseline. |
RegisterPatchBaseline |
| UpdatedDate |
string |
The time the patch baseline was last updated. |
2021-09-07T03:42:56Z |
| 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 the patch baseline was created. |
2021-09-07T03:42:56Z |
| Name |
string |
The name of the patch baseline. |
MyPatchBaseline |
| ApprovalRules |
string |
The rules for scanning and installing patches on 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,"ApproveUntilDate":"","EnableNonSecurity":true,"ComplianceLevel":"Medium"}]} |
| Id |
string |
The ID of the patch baseline. |
pb-445340b5c6504a85a300 |
| ShareType |
string |
The share type of the patch baseline. |
Private |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfm4dpaq2yox6q |
Examples
Success response
JSON format
{
"RequestId": "D6850689-348D-59FC-AE13-BB0EDB7C4BE8",
"PatchBaseline": {
"OperationSystem": "Windows",
"Description": "RegisterPatchBaseline",
"UpdatedDate": "2021-09-07T03:42:56Z",
"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,\"ApproveUntilDate\":\"\",\"EnableNonSecurity\":true,\"ComplianceLevel\":\"Medium\"}]}",
"Id": "pb-445340b5c6504a85a300",
"ShareType": "Private",
"ResourceGroupId": "rg-acfm4dpaq2yox6q"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.