Importing an Image File Quickly

Function

This API is used to quickly create a private image from an oversized external image file that has been uploaded to an OBS bucket. Currently, only ZVHD2 and RAW image files can be imported quickly, and the size of such an image file cannot exceed 1 TB.

The fast image creation function is only available for image files in RAW or ZVHD2 format. For other formats of image files that are smaller than 128 GB, you are advised to import these files with the common method.

The API is an asynchronous one. If it is successfully called, the cloud service system receives the request. However, you need to use the asynchronous job query API to query the image creation status. For details, see Querying the Status of an Asynchronous Job.

Constraints

Before importing an image file, ensure that the file format is RAW or ZVHD2 and the following have been done:
  • For RAW, the image file has been optimized, and a bitmap file has been generated.
  • For ZVHD2, the image file has been optimized as required.

For how to convert image file formats and generate a bitmap file, see section "Quickly Importing an Image File" in the Image Management Service User Guide.

URI

POST /v2/cloudimages/quickimport/action

Request

Table 1 Data structure of the image_tags field

Parameter

Mandatory

Type

Description

key

Yes

String

Specifies the tag key.

value

Yes

String

Specifies the tag value.

Example Request

Response

Returned Values