Updates a backup policy.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/backupRestore/policy/update HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Request struct. |
|
| InstanceId |
string |
No |
Instance ID. |
c-0104730e9de40215 |
| PolicyId |
string |
No |
Backup policy ID. |
bk-9812023 |
| RecurrenceValues |
array |
No |
Numerical values for the policy execution cycle. |
|
|
integer |
No |
Numerical value for the policy execution cycle. |
2 |
|
| Hour |
integer |
No |
Trigger time: hour. |
10 |
| Minute |
integer |
No |
Trigger time: minute. |
15 |
| ExpireDays |
integer |
No |
Validity period in days. |
7 |
| TimeoutSeconds |
integer |
No |
Timeout duration for the backup policy. |
3600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
HTTP request status code. |
200 |
| RequestId |
string |
Request ID. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Indicates whether the request succeeded. |
false |
| ErrCode |
string |
Error code. |
InvalidParams |
| ErrMessage |
string |
Error message. |
null |
| Data |
boolean |
Indicates whether the role was created successfully. |
24151320976**** |
| AccessDeniedDetail |
string |
AccessDeniedDetail |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "null",
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.