DescribeAdvancedBackupPolicy
Queries advanced backup policies.
Operation description
Queries advanced backup policies. This operation is supported only for 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 |
|||
| AdvancedBackupDataPolicies |
array<object> |
The list of backup policies. |
|
|
object |
|||
| ActionType |
string |
The action type. Valid values:
|
xx |
| BackupPolicy |
string |
The scheduling type of the advanced policy. Valid values:
Valid values:
|
dayOfWeek |
| 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 |
| PolicyId |
string |
The ID of the backup policy. |
xxxxxx |
| PreferredBackupPeriod |
string |
The backup cycle.
|
1,2,3 |
| PreserveOneEachHour |
boolean |
Specifies whether to enable sparse backup within an hour. Valid values:
|
False |
| RetentionPeriod |
integer |
The number of days for which backups are retained. |
7 |
| RetentionType |
string |
The retention epoch type of the backup set. Valid values:
Valid values:
|
delay |
| SrcRegion |
string |
The region where the instance resides. |
cn-beijing |
| SrcType |
string |
The source type of the backup policy. Valid values:
Valid values:
|
db |
| AdvancedBackupLogPolicies |
array<object> |
The list of log backup policies. |
|
|
object |
|||
| 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 |
| EnableLogBackup |
integer |
Specifies whether log backup is enabled. Valid values:
Valid values:
|
1 |
| PolicyId |
string |
The ID of the log backup policy. This parameter is returned only for cross-region log backup policies. |
xxxx |
| RetentionPeriod |
string |
The number of days for which log backups are retained. This parameter takes effect only when RetentionType is set to delay. |
4 |
| RetentionType |
string |
The retention epoch type of log backups. Valid values:
Valid values:
|
delay |
| 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 |
| BackupRetentionPolicyOnClusterDeletion |
integer |
The data retention policy. Valid values:
Valid values:
|
2 |
| DBInstanceId |
string |
The instance ID. |
dds-bp14bf67a76d**** |
| PreferredBackupTime |
string |
The backup time in the HH:mmZ-HH:mmZ format (UTC). |
09:00Z-10:00Z |
| PreferredNextBackupTime |
string |
The time range for starting a backup. The time is in the |
2024-06-19T19:11Z |
| RequestId |
string |
The request ID. |
111E7B16-0A87-4CBA-B271-F34AD61E099F |
| SnapshotBackupType |
string |
The snapshot backup type. Valid values:
Valid values:
|
Standard |
Examples
Success response
JSON format
{
"AdvancedBackupDataPolicies": [
{
"ActionType": " xx",
"BackupPolicy": "dayOfWeek",
"DestRegion": "cn-beijing",
"DestType": "level1",
"PolicyId": "xxxxxx",
"PreferredBackupPeriod": "1,2,3",
"PreserveOneEachHour": true,
"RetentionPeriod": 7,
"RetentionType": "delay",
"SrcRegion": "cn-beijing",
"SrcType": "db"
}
],
"AdvancedBackupLogPolicies": [
{
"DestRegion": "cn-guangzhou",
"DestType": "RDS",
"EnableLogBackup": 1,
"PolicyId": "xxxx",
"RetentionPeriod": "4",
"RetentionType": "delay",
"SrcRegion": "cn-hangzhou",
"SrcType": "et"
}
],
"BackupRetentionPolicyOnClusterDeletion": 2,
"DBInstanceId": "dds-bp14bf67a76d****",
"PreferredBackupTime": "09:00Z-10:00Z",
"PreferredNextBackupTime": "2024-06-19T19:11Z",
"RequestId": "111E7B16-0A87-4CBA-B271-F34AD61E099F",
"SnapshotBackupType": "Standard"
}
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.