Mengkueri informasi tentang set cadangan di Kluster PolarDB Basis Data Relasional Cloud-Native yang telah dirilis.
Deskripsi operasi
Before you call this operation, make sure that the PolarDB cluster is in the Released state. You must also confirm that the Retain All Backups Permanently or Retain Last Automatic Backup Permanently backup retention policy takes effect after you release the cluster. If you delete all backup sets after the cluster is released, you cannot use this API operation to query the cluster.
You can call the DescribeDBClusterAttribute operation to query the cluster status.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeDetachedBackups |
get |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-**************** |
| BackupId |
string |
No |
ID set cadangan. |
111111111 |
| BackupStatus |
string |
No |
Status set cadangan. Nilai valid:
|
Success |
| BackupMode |
string |
No |
Mode cadangan. Nilai valid:
|
Manual |
| BackupRegion |
string |
No |
Wilayah tempat file Cadangan data lintas wilayah dari Instans disimpan. Catatan
Parameter ini hanya valid untuk Kluster PolarDB Basis Data Relasional Cloud-Native for MySQL. |
cn-hangzhou |
| StartTime |
string |
Yes |
Awal rentang waktu untuk dikueri. Tentukan pengatur waktu dalam format |
2020-05-01T00:00Z |
| EndTime |
string |
Yes |
Akhir rentang waktu untuk dikueri. Tentukan pengatur waktu dalam format |
2020-05-14T00:00Z |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid:
Nilai default: 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat positif yang tidak melebihi nilai maksimum Tipe data INTEGER. Nilai default: 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
string |
The total number of returned entries. |
50 |
| PageRecordCount |
string |
The number of entries per page. |
15 |
| RequestId |
string |
The ID of the request. |
717B2382-BB14-4DCB-BBC2-32DBE0****** |
| PageNumber |
string |
The page number. |
1 |
| Items |
object |
||
| Backup |
array<object> |
Details about the backup sets. |
|
|
object |
|||
| BackupSetSize |
string |
The size of the backup set. Unit: bytes. Catatan
After you delete the target snapshot backups, the storage space consumed by the backups is released. The released storage space is smaller than the size of the backup file, because the snapshots share certain data blocks. |
7251056 |
| ConsistentTime |
string |
The snapshot checkpoint time. The value is a Unix timestamp. |
1589253947 |
| StoreStatus |
string |
Indicates whether the backup set can be deleted. Valid values:
|
Disabled |
| BackupStatus |
string |
The status of the backup set. Valid values:
|
Success |
| BackupType |
string |
The type of the backup. Only full backups are supported. The value is set to FullBackup. |
FullBackup |
| BackupStartTime |
string |
The start time of the backup task. The time is displayed in UTC. |
2020-05-12T03:25:44Z |
| IsAvail |
string |
Indicates whether the backup set is available. Valid values:
|
1 |
| BackupEndTime |
string |
The end time of the backup task. The time is displayed in UTC. |
2020-05-12T03:25:55Z |
| BackupId |
string |
The ID of the backup set. |
111111111 |
| DBClusterId |
string |
The ID of the cluster. |
pc-************** |
| BackupsLevel |
string |
The level of the backup set. Valid values:
|
Level-2 |
| BackupMode |
string |
The backup mode. Valid values:
|
Manual |
| BackupMethod |
string |
The backup method. Only snapshot backups are supported. The value is set to Snapshot. |
Snapshot |
Contoh
Respons sukses
JSONformat
{
"TotalRecordCount": "50",
"PageRecordCount": "15",
"RequestId": "717B2382-BB14-4DCB-BBC2-32DBE0******",
"PageNumber": "1",
"Items": {
"Backup": [
{
"BackupSetSize": "7251056",
"ConsistentTime": "1589253947",
"StoreStatus": "Disabled",
"BackupStatus": "Success",
"BackupType": "FullBackup",
"BackupStartTime": "2020-05-12T03:25:44Z",
"IsAvail": "1",
"BackupEndTime": "2020-05-12T03:25:55Z",
"BackupId": "111111111",
"DBClusterId": "pc-**************",
"BackupsLevel": "Level-2",
"BackupMode": "Manual",
"BackupMethod": "Snapshot"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 400 | InvalidBackupStatus.Malformed | The specified parameter BackupStatus is not valid. | The specified BackupStatus parameter is invalid. |
| 400 | InvalidBackupMode.Malformed | The specified parameter BackupMode is not valid. | The specified BackupMode parameter is invalid. |
| 400 | InvalidStartTime.Malformed | The specified parameter StartTime is not valid. | The specified StartTime parameter is invalid. |
| 400 | InvalidEndTime.Malformed | The specified parameter EndTime is not valid. | The specified EndTime parameter is invalid. |
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. | The specified PageSize parameter is invalid. |
| 400 | InvalidPageNumber.Malformed | The specified parameter PageNumber is not valid. | The specified PageNumber parameter is invalid. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.