Querying a Specified Backup
Function
This API is used to query the backup of a specific ID.
URI
GET /v3/{project_id}/backups/{backup_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
backup_id |
Yes |
String |
Backup ID |
|
project_id |
Yes |
String |
Project ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. Obtained by calling the corresponding IAM API. If the request is successfully processed, the value of X-Subject-Token included in the response header is the token value. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
backup |
BackupDetail object |
Backup |
|
Parameter |
Type |
Description |
|---|---|---|
|
checkpoint_id |
String |
Restore point ID |
|
created_at |
String |
Creation time, for example, 2020-02-05T10:38:34.209782 |
|
description |
String |
Backup description |
|
expired_at |
String |
Expiration time, for example, 2020-02-05T10:38:34.209782 |
|
extend_info |
BackupExtendInfo object |
Extended information |
|
id |
String |
Backup ID |
|
image_type |
String |
Backup type Enumeration values:
|
|
name |
String |
Backup name |
|
parent_id |
String |
Parent backup ID |
|
project_id |
String |
Project ID |
|
protected_at |
String |
Backup time |
|
resource_az |
String |
Resource availability zone |
|
resource_id |
String |
Resource ID |
|
resource_name |
String |
Resource name |
|
resource_size |
Integer |
Resource size, in GB |
|
resource_type |
String |
Resource type Enumeration values:
|
|
status |
String |
Backup status Enumeration values:
|
|
updated_at |
String |
Update time, for example, 2020-02-05T10:38:34.209782 |
|
vault_id |
String |
Vault ID |
|
replication_records |
Array of ReplicationRecordGet objects |
Replication record |
|
enterprise_project_id |
String |
Enterprise project ID. The default value is 0. |
|
children |
Array of BackupResp objects |
|
Parameter |
Type |
Description |
|---|---|---|
|
checkpoint_id |
String |
Restore point ID |
|
created_at |
String |
Creation time, for example, 2020-02-05T10:38:34.209782 |
|
description |
String |
Backup description |
|
expired_at |
String |
Expiration time, for example, 2020-02-05T10:38:34.209782 |
|
extend_info |
BackupExtendInfo object |
Extended information |
|
id |
String |
Backup ID |
|
image_type |
String |
Backup type Enumeration values:
|
|
name |
String |
Backup name |
|
parent_id |
String |
Parent backup ID |
|
project_id |
String |
Project ID |
|
protected_at |
String |
Backup time |
|
resource_az |
String |
Resource availability zone |
|
resource_id |
String |
Resource ID |
|
resource_name |
String |
Resource name |
|
resource_size |
Integer |
Resource size, in GB |
|
resource_type |
String |
Resource type Enumeration values:
|
|
status |
String |
Backup status Enumeration values:
|
|
updated_at |
String |
Update time, for example, 2020-02-05T10:38:34.209782 |
|
vault_id |
String |
Vault ID |
|
replication_records |
Array of ReplicationRecordGet objects |
Replication record |
|
enterprise_project_id |
String |
Enterprise project ID. The default value is 0. |
|
Parameter |
Type |
Description |
|---|---|---|
|
auto_trigger |
Boolean |
Whether the backup is automatically generated |
|
bootable |
Boolean |
Whether the backup is a system disk backup |
|
incremental |
Boolean |
Whether the backup is an incremental backup |
|
snapshot_id |
String |
Snapshot ID of the disk backup |
|
support_lld |
Boolean |
Whether to allow lazyloading for fast restoration |
|
supported_restore_mode |
String |
Restoration mode. Possible values are na, snapshot, and backup. snapshot indicates the backup can be used to create a full-server image. backup indicates the data is restored from backups of the EVS disks of the server. na indicates the backup cannot be used for restoration. Default: na Enumeration values:
|
|
os_images_data |
Array of ImageData objects |
ID list of images created using backups |
|
contain_system_disk |
Boolean |
Whether the VM backup data contains system disk data |
|
encrypted |
Boolean |
Whether the backup is encrypted |
|
system_disk |
Boolean |
Whether the disk is a system disk |
|
Parameter |
Type |
Description |
|---|---|---|
|
created_at |
String |
Start time of the replication |
|
destination_backup_id |
String |
ID of the destination backup used for replication |
|
destination_checkpoint_id |
String |
Record ID of the destination backup used for replication |
|
destination_project_id |
String |
ID of the replication destination project |
|
destination_region |
String |
Replication destination region |
|
destination_vault_id |
String |
Destination vault ID |
|
extra_info |
String |
Additional information of the replication |
|
id |
String |
Replication record ID |
|
source_backup_id |
String |
ID of the source backup used for replication |
|
source_checkpoint_id |
String |
ID of the source backup record used for replication |
|
source_project_id |
String |
ID of the replication source project |
|
source_region |
String |
Replication source region |
|
status |
String |
Replication status Enumeration values:
|
|
vault_id |
String |
ID of the vault where the backup resides |
Example Requests
None
Example Responses
Status code: 200
OK
{
"backup" : {
"provider_id" : "0daac4c5-6707-4851-97ba-169e36266b66",
"checkpoint_id" : "8b0851a8-adf3-4f4c-a914-dead08bf9664",
"enterprise_project_id" : "0",
"vault_id" : "3b5816b5-f29c-4172-9d9a-76c719a659ce",
"id" : "6df2b54c-dd62-4059-a07c-1b8f24f2725d",
"resource_az" : "az1.dc1",
"image_type" : "backup",
"resource_id" : "94eba8b2-acc9-4d82-badc-127144cc5526",
"resource_size" : 40,
"children" : [ {
"provider_id" : "0daac4c5-6707-4851-97ba-169e36266b66",
"checkpoint_id" : "8b0851a8-adf3-4f4c-a914-dead08bf9664",
"vault_id" : "3b5816b5-f29c-4172-9d9a-76c719a659ce",
"id" : "5d822633-2bbf-4af8-a16e-5ab1c7705235",
"image_type" : "backup",
"resource_id" : "eccbcfdd-f843-4bbb-b2c0-a5ce861f9376",
"resource_size" : 40,
"children" : [ ],
"parent_id" : "6df2b54c-dd62-4059-a07c-1b8f24f2725d",
"extend_info" : {
"auto_trigger" : true,
"snapshot_id" : "5230a977-1a94-4092-8edd-519303a44cda",
"bootable" : true,
"encrypted" : true
},
"project_id" : "4229d7a45436489f8c3dc2b1d35d4987",
"status" : "available",
"resource_name" : "ecs-1f0f-0002",
"replication_records" : [ ],
"name" : "autobk_a843_ecs-1f0f-0002",
"created_at" : "2019-05-10T07:59:59.450700",
"resource_type" : "OS::Cinder::Volume"
} ],
"extend_info" : {
"auto_trigger" : true,
"supported_restore_mode" : "backup",
"contain_system_disk" : true,
"support_lld" : true,
"app_consistency" : {
"app_consistency_error_code" : "0",
"app_consistency_status" : "0",
"app_consistency_error_message" : "",
"app_consistency" : "0"
}
},
"project_id" : "4229d7a45436489f8c3dc2b1d35d4987",
"status" : "available",
"resource_name" : "ecs-1f0f-0002",
"description" : "backup_description",
"replication_records" : [ ],
"name" : "backup_name",
"created_at" : "2019-05-10T07:59:12.084695",
"resource_type" : "OS::Nova::Server"
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Last Article: Synchronizing a Backup
Next Article: Querying All Backups
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.