This API is used to export the system disk data or data disk data as an IMS image. The exported image will be displayed in the IMS private image list and can be viewed and used.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
os-volume_upload_image |
Object |
Yes |
The image export operation marker. For details, see Parameters in the os-volume_upload_image field. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
disk_format |
String |
No |
The format of the image to be exported. The value can be vhd, zvhd, zvhd2, raw, or qcow2. The default value is zvhd2. |
image_name |
String |
Yes |
The name of the image to be exported.
|
force |
Boolean |
No |
Whether to forcibly export the image. The default value is false.
|
container_format |
String |
No |
The container type of the image to be exported. The value can be ami, ari, aki, ovf, or bare. The default value is bare. |
__os_type |
String |
No |
The OS type of the image to be exported. Only windows and linux are supported currently. The default value is linux. NOTE:
|
{ "os-volume_upload_image": { "image_name": "sxmatch2", "force": true, "container_format": "bare", "disk_format": "vhd", "__os_type": "linux" } }
Parameter |
Type |
Description |
---|---|---|
os-volume_upload_image |
Object |
The image export operation marker. For details, see Parameters in the os-volume_upload_image field. |
error |
Object |
The error message returned if an error occurs. For details, see Parameters in the error field. |
Parameter |
Type |
Description |
---|---|---|
status |
String |
The disk status after the image is exported. The correct value is uploading. |
image_id |
String |
The ID of the exported image. |
image_name |
String |
The name of the exported image. |
volume_type |
Object |
The disk type information. For details, see Parameters in the volume_type field. |
container_format |
String |
The container type of the exported image. The value can be ami, ari, aki, ovf, or bare. The default value is bare. |
size |
Integer |
The disk size, in GB. |
disk_format |
String |
The format of the exported image. The value can be vhd, zvhd, zvhd2, raw, or qcow2. The default value is vhd. |
id |
String |
The disk ID. |
display_description |
String |
The disk description. |
updated_at |
String |
The time when the disk was updated. Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
Parameter |
Type |
Description |
---|---|---|
id |
String |
The disk type ID. |
name |
String |
The disk type name. |
deleted |
Boolean |
Whether the disk has been deleted. |
is_public |
Boolean |
The reserved field. |
extra_spec |
Object |
The disk type specifications. For details, see Parameters in the extra_specs field. |
description |
Integer |
The disk type description. |
created_at |
String |
The time when the disk type was created. Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
updated_at |
String |
The time when the disk type was updated. Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
deleted_at |
String |
The time when the disk type was deleted. Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
Parameter |
Type |
Description |
---|---|---|
volume_backend_name |
String |
The reserved field. |
availability-zone |
String |
The reserved field. |
HW:availability_zone |
String |
The reserved field. |
RESKEY:availability_zones |
String |
The AZs that support the current disk type. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
The error message returned if an error occurs. |
code |
String |
The error code returned if an error occurs. For details about the error code, see Error Codes. |
{ "os-volume_upload_image": { "status": "uploading", "size": 40, "id": "16369c5d-384d-4e64-b37a-56d898769362", "image_id": "c5333daa-fbc8-4d1d-bf79-b0567bb45d15", "image_name": "evs-ims-test1027", "volume_type": { "description": "None", "deleted": false, "created_at": "2015-05-24T14:47:22.132268", "updated_at": "2017-07-29T11:29:33.730076", "extra_specs": { "volume_backend_name": "<or> iaas blockstorage_SAS <or> iaas blockstorage_SAS <or> iaas blockstoragesas", "XX:availability_zone": "az-dc-1" }, "is_public": true, "deleted_at": null, "id": "8247b6ed-37f0-4c48-8ef1-f0027fb332bc", "name": "SAS" }, "container_format": "bare", "disk_format": "vhd", "display_description": "", "updated_at": "2018-01-11T01:50:25.800931" } }
{ "error": { "message": "XXXX", "code": "XXX" } }
{ "itemNotFound": { "message": "XXXX", "code": "XXX" } }
For details, see Error Codes.