Queries the backup sets of an ApsaraDB for MongoDB sharded cluster instance that uses cloud disks.
Operation description
For a sharded cluster instance that is created before October 19, 2023 and uses cloud disks, you must call the TransferClusterBackup operation to switch the instance from the shard backup mode to the cluster backup mode before you call the DescribeClusterBackups operation.
By default, cloud disk-based sharded cluster instances that are created after October 19, 2023 are in the cluster backup mode.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dds:DescribeClusterBackups | get |
|
| 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 set. | 5664**** |
PageNo | integer | No | The page number. Default value: 1. The page number must be a positive integer. | 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 ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. | 2019-03-13T12:11:14Z |
EndTime | string | No | The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. The end time must be later than the start time. | 2019-03-14T13:10Z |
IsOnlyGetClusterBackUp | boolean | No | Specifies whether to query information about child nodes in the cluster backup. Valid values:
| true |
SrcRegion | string | No | The region ID of the instance. Note
| cn-hangzhou |
DestRegion | string | No | The region where cross-region backups reside. Note
This parameter is required if you want to query cross-region backups.
| cn-shanghai |
Response parameters
Examples
Sample success responses
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"
}
]
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-29 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-05-17 | API Description Update. The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |