Queries the backup policy of a MongoDB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeBackupPolicy |
get |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp16cb162771**** |
| InstanceType |
string |
No |
The instance type.
|
sharding |
| SrcRegion |
string |
No |
The region where the instance is located. |
cn-beijing |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
The returned data. |
||
| PreferredBackupPeriod |
string |
The backup cycle. Valid values:
|
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday |
| RequestId |
string |
The request ID. |
5A9464CA-F7DC-5434-90B1-DF7F197C**** |
| PreferredBackupTime |
string |
The backup time in the format of HH:mmZ-HH:mmZ (UTC time). |
09:00Z-10:00Z |
| BackupRetentionPeriod |
string |
The backup retention period in days. |
30 |
| PreferredNextBackupTime |
string |
The next regular backup time in the format of yyyy-mm-ddthh:mmz (UTC time). |
2024-06-19T19:11Z |
| EnableBackupLog |
integer |
Indicates whether log backup is enabled. Valid values:
|
1 |
| LogBackupRetentionPeriod |
integer |
The log backup retention period in days. Valid values: 7 to 730. |
7 |
| SnapshotBackupType |
string |
The snapshot backup type. Valid values:
|
Standard |
| BackupInterval |
integer |
The high-frequency backup frequency. Valid values:
|
-1 |
| HighFrequencyBackupRetention |
string |
The high-frequency backup retention period in days. |
1 |
| BackupRetentionPolicyOnClusterDeletion |
integer |
The backup retention policy.
For more information, see Long-term backup retention |
0 |
| SrcRegion |
string |
The region where the source instance is located. |
cn-hangzhou |
| DestRegion |
string |
The region where the geo-redundancy backup is located. |
cn-shenzhen |
| CrossRetentionType |
string |
The geo-redundancy backup retention type.
|
delay |
| CrossRetentionValue |
integer |
The geo-redundancy backup retention period. |
7 |
| CrossBackupPeriod |
string |
The geo-redundancy backup retention time.
Note
Required for geo-redundancy backup |
Monday |
| EnableCrossLogBackup |
integer |
Indicates whether cross-region log backup is enabled. Note
Required for geo-redundancy backup
|
1 |
| CrossLogRetentionType |
string |
The geo-redundancy log backup retention type.
|
delay |
| CrossLogRetentionValue |
integer |
The geo-redundancy log backup retention period. |
7 |
| PreserveOneEachHour |
boolean |
Indicates whether sparse backup within an hour is enabled.
|
Examples
Success response
JSON format
{
"PreferredBackupPeriod": "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
"RequestId": "5A9464CA-F7DC-5434-90B1-DF7F197C****",
"PreferredBackupTime": "09:00Z-10:00Z",
"BackupRetentionPeriod": "30",
"PreferredNextBackupTime": "2024-06-19T19:11Z",
"EnableBackupLog": 1,
"LogBackupRetentionPeriod": 7,
"SnapshotBackupType": "Standard",
"BackupInterval": -1,
"HighFrequencyBackupRetention": "1",
"BackupRetentionPolicyOnClusterDeletion": 0,
"SrcRegion": "cn-hangzhou",
"DestRegion": "cn-shenzhen",
"CrossRetentionType": "delay",
"CrossRetentionValue": 7,
"CrossBackupPeriod": "Monday",
"EnableCrossLogBackup": 1,
"CrossLogRetentionType": "delay",
"CrossLogRetentionValue": 7,
"PreserveOneEachHour": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.