Modifies the advanced backup policy.
Operation description
Geo-redundancy backup applies only to cloud disk replica set instances and cloud disk sharded cluster instances.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-2zeb2d64cb46xxxx |
| PreferredBackupTime |
string |
No |
The time to perform the backup. The time is in the HH:mmZ-HH:mmZ format (UTC). Note
The time range is limited to 1 hour. |
09:00Z-10:00Z |
| SnapshotBackupType |
string |
No |
The snapshot backup type. Valid values:
|
Standard |
| BackupRetentionPolicyOnClusterDeletion |
integer |
Yes |
The backup data retention policy.
|
0 |
| AdvancedBackupDataPolicies |
array<object> |
No |
The list of backup policies. |
|
|
object |
No |
|||
| PolicyId |
string |
No |
The backup policy ID. Important This parameter is required when ActionType is not set to CREATE. |
xxxxxx |
| ActionType |
string |
Yes |
The action type. Valid values:
|
CREATE |
| RetentionType |
string |
No |
The retention period type of the backup set.
|
delay |
| RetentionPeriod |
integer |
No |
The number of days to retain the backup plan.
|
7 |
| BackupPolicy |
string |
No |
The scheduling type of the advanced policy. Valid values:
Note
Important This parameter is required when ActionType is not set to DELETE. |
dayOfWeek |
| PreferredBackupPeriod |
string |
No |
The backup cycle.
Important This parameter is required when ActionType is not set to DELETE. Geo-redundancy backup policies support only dayOfWeek. |
1,4,6 |
| SrcRegion |
string |
No |
The region where the instance resides. Important This parameter is required when ActionType is not set to DELETE. |
cn-guangzhou |
| SrcType |
string |
No |
The source type of the backup policy.
|
db |
| DestRegion |
string |
No |
The destination region of the backup policy. Important This parameter is required when ActionType is not set to DELETE. |
cn-guangzhou |
| DestType |
string |
No |
The destination type of the backup policy.
|
level1 |
| PreserveOneEachHour |
boolean |
No |
Specifies whether to enable hourly sparse backup.
|
False |
| AdvancedBackupLogPolicies |
array<object> |
No |
The list of log backup policies. |
|
|
object |
No |
|||
| EnableLogBackup |
integer |
Yes |
Specifies whether to enable log backup.
Note
|
1 |
| RetentionType |
string |
No |
The retention period type of the log backup.
|
delay |
| RetentionPeriod |
integer |
No |
The number of days to retain log backups. This parameter takes effect when RetentionType is set to delay.
|
7 |
| SrcRegion |
string |
No |
The region where the source instance resides. |
cn-hangzhou |
| SrcType |
string |
No |
The source type of the log backup policy.
|
db |
| DestRegion |
string |
No |
The region where the geo-redundancy log backup resides. Note
This parameter is required for geo-redundancy backup. |
cn-huhehaote |
| DestType |
string |
No |
The destination type of the log backup policy.
|
level1 |
| PolicyId |
string |
No |
The log backup policy ID. This parameter exists only for cross-region log backup policies and is required. |
xxxx |
| ActionType |
string |
Yes |
The action type.
|
CREATE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2F42BB4E-461F-5B55-A37C-53B1141C**** |
Examples
Success response
JSON format
{
"RequestId": "2F42BB4E-461F-5B55-A37C-53B1141C****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPreferredBackupPeriod.Malformed | Specified parameter PreferredBackupPeriod is not valid. | |
| 400 | InvalidPreferredBackupTime.Malformed | Specified parameter PreferredBackupTime is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.