If you need to use a private image in a storage device or on other platforms, you can export the image.
All available private images can be exported to an OBS bucket in a specific format. After you have exported an image, you can download it from the OBS bucket to the specified storage device.
Images exported in different formats may vary in size. You will be charged for the space used to store these images.
If you use a token for authentication, you must obtain the token and add X-Auth-Token to the request header of the IMS API when making an API call.
{ "bucket_url":"ims-image:centos7_5.qcow2", //URL of the target file in the format of <Bucket name>:<File name> (mandatory, string) "file_format":"qcow2" //File format, which can be qcow2, vhd, zvhd, or vmdk (mandatory, string) }
If the request is successful, a job ID is returned.
If the job status is SUCCESS, the private image is successfully created.
For details about status codes for request errors, see Status Codes.