Retrieves a list of snapshots. Each snapshot represents a point-in-time backup that can be used to restore a new instance with its full data.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
hologram:ListBackupData | list | *Instance
| None | None |
Request syntax
GET /api/v1/backups HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
instanceId | string | No | The instance ID. | hgprecn-cn-wwoxxxxx |
backupType | string | No | The backup type, used to filter snapshots. If you leave this parameter empty, all snapshots are returned. Valid values:
| redundant |
Response elements
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 |
Examples
Success response
JSON format
{
"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"
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.