Queries the backups of a MongoDB instance.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dds:DescribeBackups | get | *Instance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
DBInstanceId | string | Yes | The ID of the instance. Note If the instance is a sharded cluster instance, you must also specify the NodeId parameter. | dds-bp1a7009eb24**** |
NodeId | string | No | The ID of the shard node in the sharded cluster instance. Note This parameter is required if you specify the ID of a sharded cluster instance for the DBInstanceId parameter. | d-bp128a003436**** |
BackupId | string | No | The backup ID. If you specify the ID of a sharded cluster instance for the DBInstanceId parameter, the number of backup IDs must be the same as the number of shard nodes. Separate the backup IDs with commas (,). | 2072****,2072****,2072**** |
PageNumber | integer | No | The page number. The value must be greater than 0 and not greater than the maximum value of the integer data type. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values:
| 30 |
StartTime | string | No | The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in Coordinated Universal Time (UTC). Note This parameter is invalid if you specify the BackupId parameter. | 2022-01-13T13:00Z |
EndTime | string | No | The end of the time range to query. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. Note This parameter is invalid if you specify the BackupId parameter. | 2022-01-14T13:00Z |
SrcRegion | string | No | The region where the instance resides. Note
| cn-beijing |
DestRegion | string | No | The region where the backup resides. Note This parameter is required for geo-redundancy. | cn-hangzhou |
ResourceGroupId | string | No | The resource group ID. | rg-xxxx |
BackupJobId | string | No | The backup job ID. | 775051 |
Response elements
Element | Type | Description | Example |
object | |||
TotalCount | integer | The total number of backups. | 1 |
RequestId | string | The request ID. | 275D43C3-F12F-5224-B375-************ |
PageSize | integer | The number of entries returned per page. Valid values:
| 30 |
PageNumber | integer | The page number. | 1 |
| Backups | object | ||
| Backup | array<object> | The details of the backup files. | |
object | The details of the backup files. | ||
BackupStatus | string | The backup status. Valid values:
| Success |
BackupType | string | The backup type. Valid values:
| FullBackup |
BackupStartTime | string | The start time of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. | 2022-01-14T03:56:17Z |
BackupIntranetDownloadURL | string | The internal download URL for the backup file. Note Use this URL to download the backup file from an ECS instance. The ECS instance must be in the same network as the MongoDB instance. | http://rdsbak-hz-v3.oss-cn-hangzhou-internal.aliyuncs.com/custins5559*****/hins1936****_data_2022052504****_qp.xb?Expires=165361****&OSSAccessKeyId=***********************&Signature=******************************&Region=cn-hangzhou |
BackupSize | integer | The size of the backup file. Unit: bytes. | 6168576 |
BackupDownloadURL | string | The external download URL for the backup file. If the file is not available for download, an empty string is returned. | http://rdsbak-hz-v3.oss-cn-hangzhou.aliyuncs.com/custins5559****/hins1936****_data_2022052504****_qp.xb?Expires=165361****&OSSAccessKeyId=************************&Signature=******************************&Region=cn-hangzhou |
BackupMode | string | The backup mode. Valid values:
| Automated |
BackupEndTime | string | The end time of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. | 2022-01-14T03:57:34Z |
BackupId | string | The backup ID. | 32102**** |
BackupDBNames | string | The name of the database that is backed up. | database |
BackupMethod | string | The backup method. Valid values:
| Physical |
BackupJobId | string | The ID of the backup set job. | 1123xxxx |
BackupName | string | The name of the backup set. This parameter is currently invalid. | 12345678.tar.gz |
BackupScale | string | The backup granularity. This parameter is currently invalid. | DBInstance |
IsAvail | boolean | Indicates whether the backup set is available. Valid values:
| 1 |
EngineVersion | string | The database engine version of the instance when the backup was created. Valid values:
| 4.2 |
BackupExpireTime | string | The expiration time of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. Important A value of "9999-01-01T00:00:00Z" indicates that the backup is permanently retained. | 2025-08-30T09:49:11Z |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "275D43C3-F12F-5224-B375-************",
"PageSize": 30,
"PageNumber": 1,
"Backups": {
"Backup": [
{
"BackupStatus": "Success",
"BackupType": "FullBackup",
"BackupStartTime": "2022-01-14T03:56:17Z",
"BackupIntranetDownloadURL": "http://rdsbak-hz-v3.oss-cn-hangzhou-internal.aliyuncs.com/custins5559*****/hins1936****_data_2022052504****_qp.xb?Expires=165361****&OSSAccessKeyId=***********************&Signature=******************************&Region=cn-hangzhou",
"BackupSize": 6168576,
"BackupDownloadURL": "http://rdsbak-hz-v3.oss-cn-hangzhou.aliyuncs.com/custins5559****/hins1936****_data_2022052504****_qp.xb?Expires=165361****&OSSAccessKeyId=************************&Signature=******************************&Region=cn-hangzhou",
"BackupMode": "Automated",
"BackupEndTime": "2022-01-14T03:57:34Z",
"BackupId": "32102****",
"BackupDBNames": "database",
"BackupMethod": "Physical",
"BackupJobId": "1123xxxx",
"BackupName": "12345678.tar.gz",
"BackupScale": "DBInstance",
"IsAvail": true,
"EngineVersion": "4.2",
"BackupExpireTime": "2025-08-30T09:49:11Z"
}
]
}
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidStartTime.Malformed | The Specified parameter StartTime is not valid. | |
400 | InvalidEndTime.Malformed | The Specified parameter EndTime is not valid. | |
400 | InvalidStartTimeAndEndTime.Malformed | The Specified parameter StartTime or EndTime is not valid. | |
400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.