Mengkueri set cadangan kluster untuk instans kluster sharded Database Apsara for MongoDB yang menggunakan cloud disk.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeClusterBackups |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-bp16cb162771**** |
| BackupId |
string |
No |
ID cadangan kluster. |
5664**** |
| PageNo |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilainya harus berupa bilangan bulat positif. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Nilai valid:
|
30 |
| StartTime |
string |
No |
Awal rentang pengatur waktu yang akan dikueri. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mmZ. Pengatur waktu harus dalam Coordinated Universal Time (UTC). Catatan
Parameter ini tidak valid jika Anda menentukan parameter BackupId. |
2019-03-13T12:11Z |
| EndTime |
string |
No |
Akhir rentang pengatur waktu yang akan dikueri. Pengatur waktu akhir harus lebih lambat dari pengatur waktu mulai. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mmZ. Pengatur waktu harus dalam UTC. Catatan
Parameter ini tidak valid jika Anda menentukan parameter BackupId. |
2019-03-14T13:10Z |
| IsOnlyGetClusterBackUp |
boolean |
No |
Apakah akan mengkueri informasi tentang node anak dalam cadangan kluster. Nilai valid:
|
true |
| SrcRegion |
string |
No |
Wilayah tempat instans berada. Catatan
|
cn-hangzhou |
| DestRegion |
string |
No |
Wilayah tempat cadangan geo-redundant berada. Catatan
Parameter ini diperlukan saat Anda mengkueri cadangan geo-redundant. |
cn-shanghai |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-xxxx |
| BackupJobId |
string |
No |
ID Pekerjaan cadangan. |
775051 |
Elemen respons
|
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:
Catatan
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. Penting
A value of "9999-01-01T00:00:00Z" indicates that the backup is permanently retained. |
2025-03-29T03:47:12Z |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.