Queries the advanced backup policy.
Operation description
Queries the advanced backup policy. This operation supports only cloud disk replica set and cloud disk sharded cluster instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAdvancedBackupPolicy |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp18b0934e70**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
111E7B16-0A87-4CBA-B271-F34AD61E099F |
| DBInstanceId |
string |
The instance ID. |
dds-bp14bf67a76d**** |
| PreferredBackupTime |
string |
The backup time in the format of HH:mmZ-HH:mmZ (UTC time). |
09:00Z-10:00Z |
| SnapshotBackupType |
string |
The snapshot backup type. Valid values:
Valid values:
|
Standard |
| BackupRetentionPolicyOnClusterDeletion |
integer |
The backup data retention policy. Valid values:
Valid values:
|
2 |
| PreferredNextBackupTime |
string |
The time range within which the backup starts. The format is |
2024-06-19T19:11Z |
| AdvancedBackupDataPolicies |
array<object> |
The list of backup policies. |
|
|
object |
|||
| PolicyId |
string |
The backup policy ID. |
xxxxxx |
| ActionType |
string |
The action type. Valid values:
|
xx |
| RetentionType |
string |
The retention epoch type of the backup set. Valid values:
Valid values:
|
delay |
| RetentionPeriod |
integer |
The number of days to retain the backup. |
7 |
| BackupPolicy |
string |
The scheduling type of the advanced backup policy. Valid values:
Valid values:
|
dayOfWeek |
| PreferredBackupPeriod |
string |
The backup cycle.
|
1,2,3 |
| SrcRegion |
string |
The region where the instance resides. |
cn-beijing |
| SrcType |
string |
The source type of the backup policy. Valid values:
Valid values:
|
db |
| DestRegion |
string |
The destination region of the backup policy. |
cn-beijing |
| DestType |
string |
The destination type of the backup policy. Valid values:
Valid values:
|
level1 |
| PreserveOneEachHour |
boolean |
Specifies whether to enable sparse backup within an hour. Valid values:
|
False |
| AdvancedBackupLogPolicies |
array<object> |
The list of log backup policies. |
|
|
object |
|||
| EnableLogBackup |
integer |
Indicates whether log backup is enabled. Valid values:
Valid values:
|
1 |
| RetentionType |
string |
The retention epoch type of the log backup. Valid values:
Valid values:
|
delay |
| RetentionPeriod |
string |
The number of days to retain the log backup. This parameter takes effect only when RetentionType is set to delay. |
4 |
| SrcRegion |
string |
The region where the source instance resides. |
cn-hangzhou |
| SrcType |
string |
The source type of the log backup policy. Valid values:
Valid values:
|
et |
| DestRegion |
string |
The destination region of the log backup policy. |
cn-guangzhou |
| DestType |
string |
The destination type of the log backup policy. Valid values:
Valid values:
|
RDS |
| PolicyId |
string |
The log backup policy ID. This field exists only for cross-region log backup policies. |
xxxx |
Examples
Success response
JSON format
{
"RequestId": "111E7B16-0A87-4CBA-B271-F34AD61E099F",
"DBInstanceId": "dds-bp14bf67a76d****",
"PreferredBackupTime": "09:00Z-10:00Z",
"SnapshotBackupType": "Standard",
"BackupRetentionPolicyOnClusterDeletion": 2,
"PreferredNextBackupTime": "2024-06-19T19:11Z",
"AdvancedBackupDataPolicies": [
{
"PolicyId": "xxxxxx",
"ActionType": " xx",
"RetentionType": "delay",
"RetentionPeriod": 7,
"BackupPolicy": "dayOfWeek",
"PreferredBackupPeriod": "1,2,3",
"SrcRegion": "cn-beijing",
"SrcType": "db",
"DestRegion": "cn-beijing",
"DestType": "level1",
"PreserveOneEachHour": true
}
],
"AdvancedBackupLogPolicies": [
{
"EnableLogBackup": 1,
"RetentionType": "delay",
"RetentionPeriod": "4",
"SrcRegion": "cn-hangzhou",
"SrcType": "et",
"DestRegion": "cn-guangzhou",
"DestType": "RDS",
"PolicyId": "xxxx"
}
]
}
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.