Sets a backup policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:SetBackupPolicy |
update |
*instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID. |
drds************ |
| PreferredBackupPeriod |
string |
No |
The backup cycle. Valid values:
|
0 |
| PreferredBackupStartTime |
string |
No |
The start time of the backup. |
11:30:30 |
| PreferredBackupEndTime |
string |
No |
The end time of the backup. |
12:30:30 |
| BackupMode |
string |
No |
The backup mode. Valid values:
|
phy |
| BackupLevel |
string |
No |
The backup level. Valid values:
|
db |
| BackupDbNames |
string |
No |
The databases to back up. Separate multiple databases with commas (,). Note
This parameter takes effect only when the backup level is set to database level. |
test1,test2 |
| BackupLog |
string |
No |
Specifies whether to enable backup logging. Valid values:
|
1 |
| DataBackupRetentionPeriod |
string |
No |
The number of days for which data backups are retained. Valid values: 7 to 730. |
7 |
| LogBackupRetentionPeriod |
string |
No |
The number of days for which log backups are retained. Valid values: 7 to 730. The value must be less than or equal to the data backup retention period. |
7 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A3140FC7-B78B-4D8E-B0C8-926D28****** |
| Result |
string |
Indicates whether the backup policy is set. |
success |
| Success |
boolean |
The result of the request. |
true |
Examples
Success response
JSON format
{
"RequestId": "A3140FC7-B78B-4D8E-B0C8-926D28******",
"Result": "success",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.