Mengambil daftar snapshot. Setiap snapshot mewakili cadangan pengatur waktu yang dapat Anda gunakan untuk memulihkan instans baru dengan data lengkapnya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ListBackupData |
list |
*Instance
|
None | None |
Sintaks permintaan
GET /api/v1/backups HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID instans. |
hgprecn-cn-wwoxxxxx |
| backupType |
string |
No |
Tipe cadangan yang digunakan untuk memfilter snapshot. Jika Anda mengosongkan parameter ini, semua snapshot akan dikembalikan. Valid values:
|
redundant |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4AA0C48F-B5BB-5FF9-A43B-6B91E0715D46 |
| BackupDataList |
array<object> |
The list of backups. |
|
|
object |
|||
| BackupType |
string |
The backup type.
|
redundant |
| DataGran |
string |
The backup granularity. Valid values:
|
instance |
| Id |
integer |
The unique snapshot ID. |
1780805690994479105 |
| InstanceId |
string |
The instance ID. |
hgpostcn-cn-pe33jdxxxxx |
| StartTime |
string |
The timestamp when the backup began. Format: |
2024-10-28T11:19:56.000+00:00 |
| Status |
string |
The backup status. Valid values:
|
completed |
| TriggerType |
string |
The backup trigger type. Valid values:
|
scheduled |
| DataDesc |
string |
The description of the snapshot. It can be updated. |
demo |
| DataTime |
string |
The time when the data snapshot was created. For the format, see StartTime. |
2024-10-28T12:23:37.000+00:00 |
| DataSize |
integer |
The size of the snapshot, in bytes. |
76085723136 |
| EndTime |
string |
The time when the backup was completed. For the format, see StartTime. |
2024-10-28T12:27:34.000+00:00 |
| ColdDataSize |
integer |
The size of the cold data, in bytes. |
32413521 |
| InstanceType |
string |
The instance type. Valid values:
|
Warehouse |
| InstanceRegion |
string |
The region where the instance resides. |
cn-hangzhou |
| SnapshotRegion |
string |
The region where the snapshot is stored. |
cn-hangzhou |
| InstanceZoneId |
string |
The zone where the instance resides. |
cn-hangzhou-j |
| SnapshotZoneId |
string |
The zone where backup snapshot(s). If you use zone-redundant storage, the data is stored across multiple zones. This parameter returns one of those zones. |
cn-hangzhou-j |
| InstanceName |
string |
The instance name. |
my-hologres-dw |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4AA0C48F-B5BB-5FF9-A43B-6B91E0715D46",
"BackupDataList": [
{
"BackupType": "redundant",
"DataGran": "instance",
"Id": 1780805690994479000,
"InstanceId": "hgpostcn-cn-pe33jdxxxxx",
"StartTime": "2024-10-28T11:19:56.000+00:00",
"Status": "completed",
"TriggerType": "scheduled",
"DataDesc": "demo",
"DataTime": "2024-10-28T12:23:37.000+00:00",
"DataSize": 76085723136,
"EndTime": "2024-10-28T12:27:34.000+00:00",
"ColdDataSize": 32413521,
"InstanceType": "Warehouse",
"InstanceRegion": "cn-hangzhou",
"SnapshotRegion": "cn-hangzhou",
"InstanceZoneId": "cn-hangzhou-j",
"SnapshotZoneId": "cn-hangzhou-j",
"InstanceName": "my-hologres-dw"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.