Querying a Single Backup
Function
This API is used to query the backup of a specific ID.
URI
- URI format
GET https://{endpoint}/v1/{project_id}/checkpoint_items/{checkpoint_item_id}
- Parameter description
Table 1 Parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID
For details about how to obtain the project ID, see Obtaining a Project ID.
checkpoint_item_id
Yes
String
Backup ID
Request
- Example request
GET https://{endpoint}/v1/{project_id}/checkpoint_items/{checkpoint_item_id}
Response
- Parameter description
Table 2 Parameter description Parameter
Type
Description
checkpoint_item
checkpoint_item
For details, see Table 3.
- Parameter description of field checkpoint_item
Table 3 Parameter description of field checkpoint_item Parameter
Type
Description
checkpoint_id
String
Backup record ID
created_at
String
Creation time, for example, 2017-04-18T01:21:52.701973
extend_info
Dict
Extension information
id
String
Backup ID
name
String
Backup name
resource_id
String
ID of the object to be backed up
status
String
Backup status. Possible values are waiting_protect, protecting, available, waiting_restore, restoring, error, waiting_delete, deleting, and deleted.
Enum:[ waiting_protect, protecting, available, waiting_restore, restoring, error, waiting_delete, deleting,deleted]
updated_at
String
Modification time, for example, 2017-04-18T01:21:52.701973
backup_data
Dict
VM metadata
description
string
Backup description
resource_type
String
Type of the backup object
- Parameter description of field extend_info
Table 4 Parameter description of field extend_info Parameter
Type
Description
auto_trigger
Boolean
Whether automatic trigger is enabled
average_speed
Integer
Average rate. The unit is kb/s
copy_from
String
The destination region of a backup replication. The default value is empty.
copy_status
String
Backup replication status. The default value is na.
Possible values are na, waiting_copy, copying, success, and fail.
fail_code
fail_code
Error code
fail_op
String
Type of the failed operation
Enum: [backup, restore, delete]
fail_reason
String
Description of the failure cause
image_type
String
Backup type. For example, backup
incremental
Boolean
Whether the backup is an enhanced backup
progress
Integer
Backup progress. The value is an integer ranging from 0 to 100.
resource_az
String
AZ to which the backup resource belongs
resource_name
String
Backup object name
resource_type
String
Type of the backup object. For example, OS::Nova::Server
size
Integer
Backup capacity. The unit is MB.
space_saving_ratio
Integer
Space saving rate
volume_backups
List<volume_backup>
Volume backup list
finished_at
String
Backup completion time, for example, 2017-04-18T01:21:52.701973
supported_restore_mode
String
Restoration mode. Possible values are na and backup.
backup: Data is restored from backups of the EVS disks of the server.
na: Restoration is not supported.
os_images_data
List<image_data>
Image data. This parameter has a value if an image has been created for the VM.
support_lld
Boolean
Whether to allow lazyloading for fast restoration
app_consistency
Dict
Application-consistent backup information. For details, see the app_consistency field description.
taskid
String
Job ID
hypervisor_type
String
Virtualization type
The value is fixed at QEMU.
- Description of field app_consistency
Parameter
Type
Description
app_consistency
Integer
Whether to perform application-consistent backup. Possible values are 0 (no), 1 (yes, and stop backing up data after the application-consistent backup fails), and 2 (yes, and continue to perform crash-consistent backup after the application-consistent backup fails).
app_consistency_status
Integer
Whether the freezing and unfreezing operations are successful during application-consistent backup. 0 indicates that application-consistent backup is not enabled. 1 indicates that application-consistent backup is enabled but I/Os fail to be frozen or unfrozen. 2 indicates that application-consistent backup is disabled and I/Os are frozen and then unfrozen successfully. 11 indicates that application-consistent backup is enabled, I/Os fail to be frozen or unfrozen, and the Agent version is not the latest. 12 indicates that application-consistent backup is enabled, I/Os are frozen and then unfrozen successfully, and the Agent version is not the latest. If the common backup process fails, application-consistent backup fails no matter whether the freezing and unfreezing operations are successful. For details about the application-consistent backup feature, see the description in section "Creating a Resource Backup."
app_consistency_error_code
String
Error code returned if application-consistent backup fails
app_consistency_error_message
String
Cause of the application-consistent backup failure
- Parameter description of field backup_data
Table 5 Parameter description of field backup_data Parameter
Type
Description
__openstack_region_name
String
Name of the AZ where the server is located. If this parameter is left blank, such information about the server has not been obtained.
cloudservicetype
String
Server type
The value is fixed at server (ECSs).
disk
Integer
System disk size corresponding to the server specifications
imagetype
String
Image type
The value can be:
gold: public image
private: private image
market: market image
ram
Integer
Memory size of the server, in MB
vcpus
Integer
CPU cores corresponding to the server
eip
String
Elastic IP address of the server. If this parameter is left blank, such information about the server has not been obtained.
private_ip
String
Internal IP address of the server. If this parameter is left blank, such information about the server has not been obtained.
- Parameter description of field image_data
Parameter
Type
Description
image_id
String
Image ID
- Parameter description of field fail_code
Table 6 Parameter description of field fail_code Parameter
Type
Description
Code
Long
Error code
Description
String
Error description
- Parameter description of field volume_backup
Table 7 Parameter description of field volume_backup Parameter
Type
Description
average_speed
Integer
Average rate, in MB/s
bootable
Boolean
Whether the disk is bootable
The value can be true or false.
id
String
Cinder backup ID
image_type
String
Backup set type: backup
Enum:[ backup]
incremental
Boolean
Whether incremental backup is used
name
String
EVS disk backup name
size
Integer
Accumulated size (MB) of backups
source_volume_id
String
Source disk ID
source_volume_size
Integer
Source volume size in GB
space_saving_ratio
Integer
Space saving rate
status
String
Status
source_volume_name
String
Source volume name
- Example response
{ "checkpoint_item": { "status": "available", "backup_data": { "eip": "", "cloudservicetype": "", "ram": 4096, "vcpus": 4, "__openstack_region_name": "", "private_ip": "", "disk": 0, "imagetype": "" }, "name": "backup_d32c", "resource_id": "f45c477a-57e5-465f-999f-d845083962db", "created_at": "2017-04-15T04:20:37.277880", "checkpoint_id": "f672a1bb-6912-446a-816c-72792c5263e0", "updated_at": "2017-04-15T04:25:38.680638", "resource_type": "OS::Nova::Server", "extend_info": { "auto_trigger": false, "space_saving_ratio": 0, "copy_status": "na", "fail_reason": "", "resource_az": "az1.dc1", "image_type": "backup", "finished_at": "2017-04-15T04:25:38.675478", "average_speed": 0, "copy_from": "", "supported_restore_mode": "backup", "support_lld": false, "os_images_data": [ { "image_id": "fe84dd80-0229-4918-8d3d-cbb33154b565" } ], "volume_backups": [ { "status": "available", "space_saving_ratio": 0, "name": "manualbk_47222", "bootable": true, "average_speed": 0, "source_volume_size": 20, "source_volume_id": "ee27f809-6fb5-40ae-ac46-c932bb4ee8fe", "incremental": false, "image_type": "backup", "source_volume_name": "karbor_02", "id": "70675cbc-d3a8-43a7-9f81-c8b6bc3f5d6d", "size": 0, "snapshot_id": "36f520e1-d2ea-4907-956a-3d9cd53e2d38" }, { "status": "available", "space_saving_ratio": 0, "name": "manualbk_47222", "bootable": true, "average_speed": 0, "source_volume_size": 20, "source_volume_id": "e7f48980-927c-48de-afd4-f0245d2e5100", "incremental": false, "image_type": "backup", "source_volume_name": "karbor_01", "id": "8eb98e91-8924-4d4b-b6d6-28fb7b751e9c", "size": 0, "snapshot_id": "36f520e1-d2ea-4907-956a-3d9cd53e2d38" } ], "fail_code": {}, "incremental": false, "taskid": "e0a21692-2192-11e7-bf23-0242ac110007", "hypervisor_type": "QEMU", "progress": 100, "fail_op": "", "resource_name": "karbor_02", "size": 0 }, "id": "90c1d5fa-1b9f-4aeb-b2f4-81c806e98190" } }
Status Codes
- Normal
Status Code
Description
200
OK
- Abnormal
Status Code
Description
400
Invalid request parameters.
401
Authentication failed.
403
No operation permission.
404
Requested object not found.
500
Service unavailable.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot