Queries the cluster backup sets for an ApsaraDB for MongoDB sharded cluster instance that uses cloud disks.
Operation description
For sharded cluster instances that use cloud disks and were created before October 19, 2023, you must first call the TransferClusterBackup operation to convert shard backups to cluster backups.
Sharded cluster instances that use cloud disks and were created after October 19, 2023 use cluster backups by default.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeClusterBackups |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The ID of the instance. |
dds-bp16cb162771**** |
| BackupId |
string |
No |
The ID of the cluster backup. |
5664**** |
| PageNo |
integer |
No |
The number of the page to return. The value must be a positive integer. 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. |
2019-03-13T12:11Z |
| 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. |
2019-03-14T13:10Z |
| IsOnlyGetClusterBackUp |
boolean |
No |
Specifies whether to query the information about the child nodes in the cluster backup. Valid values:
|
true |
| SrcRegion |
string |
No |
The region where the instance resides. Note
|
cn-hangzhou |
| DestRegion |
string |
No |
The region where the geo-redundant backup resides. Note
This parameter is required when you query geo-redundant backups. |
cn-shanghai |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-xxxx |
| BackupJobId |
string |
No |
The ID of the backup job. |
775051 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
2F42BB4E-461F-5B55-A37C-53B1141C**** |
| MaxResults |
integer |
The maximum number of entries returned in this request. |
10 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| ClusterBackups |
array<object> |
The details of the cluster backup sets. A cluster backup contains the backup sets of all nodes. |
|
|
array<object> |
The details of the cluster backup sets. A cluster backup contains the backup sets of all nodes. |
||
| IsAvail |
integer |
Indicates whether the cluster backup set is valid. Valid values:
|
1 |
| ClusterBackupId |
string |
The ID of the cluster backup. |
cb-o8c2ugnxo26kx*** |
| ClusterBackupStatus |
string |
The status of the cluster backup. |
OK |
| ClusterBackupStartTime |
string |
The time when the cluster backup started. |
2023-10-16T19:33:20Z |
| ClusterBackupSize |
string |
The size of the cluster backup set, in bytes. |
107374182400 |
| ClusterBackupEndTime |
string |
The time when the cluster backup finished. |
2023-10-16T19:33:20Z |
| ClusterBackupMode |
string |
The mode of the cluster backup. |
Automated |
| ExtraInfo |
object |
The supplementary information. The value is a JSON-formatted string. |
|
| RegistryFromHistory |
string |
Indicates whether the backup set was migrated from a historical backup. A value of 1 indicates that the backup was migrated. |
1 |
| Backups |
array<object> |
The backup sets of each child node in the cluster backup. |
|
|
array<object> |
The backup sets of each child node in the cluster backup. |
||
| BackupId |
string |
The ID of the backup. |
738025367 |
| InstanceName |
string |
The name of the shard in the MongoDB cluster. |
d-bp16cb162771**** |
| BackupDownloadURL |
string |
The public URL from which you can download the backup file. If the backup file is unavailable for download, an empty string is returned. |
http://oss.com/xxx |
| BackupIntranetDownloadURL |
string |
The internal URL from which you can download the backup file. If the backup file is unavailable for download, an empty string is returned. |
http://oss.com/xxx |
| BackupStartTime |
string |
The time when the backup started. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. |
2023-10-16T19:33:20Z |
| BackupEndTime |
string |
The time when the backup finished. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. |
2023-10-16T19:33:20Z |
| BackupSize |
string |
The size of the backup file, in bytes. |
77544597650 |
| IsAvail |
string |
Indicates whether the backup set is available. Valid values:
|
1 |
| BackupStatus |
string |
The backup status. Valid values:
|
Success |
| BackupName |
string |
The name of the backup. |
12345678.tar.gz |
| ExtraInfo |
object |
The information about the instance node that is associated with the backup. |
|
| NodeId |
string |
The ID of the node. |
d-2ze75ab1fa5d**** |
| StorageSize |
string |
The storage space of the node, in MB. |
20480 |
| InstanceClass |
string |
The specifications of the node. |
mdb.shard.4x.large.d |
| NodeType |
string |
The type of the node. |
db |
| Progress |
string |
The backup progress in percentage. This parameter is returned only for backups that are in progress. |
50 |
| AttachLogStatus |
string |
The status of the attached log backup. Valid values:
Note
If the value of the ClusterBackupStatus parameter is OK, it only indicates that the full backup was successful. For a cluster instance for which log backup is enabled, the attached log backup must be complete before you can perform a point-in-time restore or ensure data consistency. |
Ready |
| EngineVersion |
string |
The database engine version of the instance when the backup was created. Valid values:
|
4.2 |
| BackupExpireTime |
string |
The time when the backup expires. 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-03-29T03:47:12Z |
Examples
Success response
JSON format
{
"RequestId": "2F42BB4E-461F-5B55-A37C-53B1141C****",
"MaxResults": 10,
"PageNumber": 1,
"PageSize": 30,
"ClusterBackups": [
{
"IsAvail": 1,
"ClusterBackupId": "cb-o8c2ugnxo26kx***",
"ClusterBackupStatus": "OK",
"ClusterBackupStartTime": "2023-10-16T19:33:20Z",
"ClusterBackupSize": "107374182400",
"ClusterBackupEndTime": "2023-10-16T19:33:20Z",
"ClusterBackupMode": "Automated",
"ExtraInfo": {
"RegistryFromHistory": "1"
},
"Backups": [
{
"BackupId": "738025367",
"InstanceName": "d-bp16cb162771****\n",
"BackupDownloadURL": "http://oss.com/xxx",
"BackupIntranetDownloadURL": "http://oss.com/xxx",
"BackupStartTime": "2023-10-16T19:33:20Z",
"BackupEndTime": "2023-10-16T19:33:20Z",
"BackupSize": "77544597650",
"IsAvail": "1",
"BackupStatus": "Success",
"BackupName": "12345678.tar.gz",
"ExtraInfo": {
"NodeId": "d-2ze75ab1fa5d****",
"StorageSize": "20480",
"InstanceClass": "mdb.shard.4x.large.d",
"NodeType": "db"
}
}
],
"Progress": "50",
"AttachLogStatus": "Ready",
"EngineVersion": "4.2",
"BackupExpireTime": "2025-03-29T03:47:12Z"
}
]
}
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.