DescribeBackupPolicy
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. Valid values:
|
sharding |
| SrcRegion |
string |
No |
The region where the instance is deployed. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| BackupInterval |
integer |
The high-frequency backup frequency. Valid values:
|
-1 |
| BackupRetentionPeriod |
string |
The backup retention period in days. |
30 |
| BackupRetentionPolicyOnClusterDeletion |
integer |
The backup data retention policy. Valid values:
For more information, see Long-term retention backup. |
0 |
| CrossBackupPeriod |
string |
The days of the week when geo-redundancy backups are performed. Valid values:
Note
Required for geo-redundancy backups. |
Monday |
| CrossLogRetentionType |
string |
The retention type for cross-region log backups. Valid values:
|
delay |
| CrossLogRetentionValue |
integer |
The retention period for cross-region log backups. |
7 |
| CrossRetentionType |
string |
The retention type for geo-redundancy backups. Valid values:
|
delay |
| CrossRetentionValue |
integer |
The retention period for geo-redundancy backups. |
7 |
| DestRegion |
string |
The region where geo-redundancy backups are stored. |
cn-shenzhen |
| EnableBackupLog |
integer |
Specifies whether to enable log backup. Valid values:
|
1 |
| EnableCrossLogBackup |
integer |
Specifies whether cross-region log backup is enabled. Note
Required for geo-redundancy backups.
|
1 |
| HighFrequencyBackupRetention |
string |
The retention period for high-frequency backups, in days. |
1 |
| LogBackupRetentionPeriod |
integer |
The retention period for log backups, in days. Valid values: 7 to 730. |
7 |
| PreferredBackupPeriod |
string |
The backup cycle. Valid values:
|
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday |
| PreferredBackupTime |
string |
The backup time. The format is HH:mmZ-HH:mmZ (UTC time). |
09:00Z-10:00Z |
| PreferredNextBackupTime |
string |
The time of the next regular backup. The format is yyyy-mm-ddthh:mmz (UTC time). |
2024-06-19T19:11Z |
| PreserveOneEachHour |
boolean |
Specifies whether to enable sparse backup within an hour. Valid values:
|
false |
| RequestId |
string |
The ID of the request. |
5A9464CA-F7DC-5434-90B1-DF7F197C**** |
| SnapshotBackupType |
string |
The snapshot backup type. Valid values:
|
Standard |
| SrcRegion |
string |
The region where the source instance is deployed. |
cn-hangzhou |
Examples
Success response
JSON format
{
"BackupInterval": -1,
"BackupRetentionPeriod": "30",
"BackupRetentionPolicyOnClusterDeletion": 0,
"CrossBackupPeriod": "Monday",
"CrossLogRetentionType": "delay",
"CrossLogRetentionValue": 7,
"CrossRetentionType": "delay",
"CrossRetentionValue": 7,
"DestRegion": "cn-shenzhen",
"EnableBackupLog": 1,
"EnableCrossLogBackup": 1,
"HighFrequencyBackupRetention": "1",
"LogBackupRetentionPeriod": 7,
"PreferredBackupPeriod": "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
"PreferredBackupTime": "09:00Z-10:00Z",
"PreferredNextBackupTime": "2024-06-19T19:11Z",
"PreserveOneEachHour": false,
"RequestId": "5A9464CA-F7DC-5434-90B1-DF7F197C****",
"SnapshotBackupType": "Standard",
"SrcRegion": "cn-hangzhou"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.