CLI Command Reference
Image Jobs
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying the Progress of an Asynchronous Job | hcloud IMS ShowJobProgress | This is an extended API. It is used to query the progress of an asynchronous job. |
Images
| API Name | Command | Description | Operation |
|---|---|---|---|
| Exporting an Image | hcloud IMS ExportImage | This is an extended API. It is used to export a private image to an OBS bucket. | |
| Exporting an Image (New) | hcloud IMS ExportImageInSafeMode | This is an extended API. It is used to export a private image to an OBS bucket. | |
| Querying Images | hcloud IMS ListImages | This API is used to query images using search criteria. | |
| Updating an Image | hcloud IMS UpdateImage | This API is used to update image information. Only active images can be updated. | |
| Creating a Data Disk Image Using an External Image File | hcloud IMS CreateDataImage | This API is used to create a data disk image from a data disk image file uploaded to an OBS bucket. This is an asynchronous API. A successful call only means the backend has received the request. To see if an image is created successfully, you need to use the asynchronous job query API to query the image creation status. For details, see Querying the Progress of an Asynchronous Job. | |
| Creating a Data Disk Image from an External Image File (New) | hcloud IMS CreateDataImageInSafeMode | This API is used to create a data disk image from a data disk image file uploaded to an OBS bucket. This is an asynchronous API. A successful call only means the backend has received the request. To see if an image is created successfully, you need to use the asynchronous job query API to query the image creation status. For details, see Querying the Progress of an Asynchronous Job. | |
| Creating an Image | hcloud IMS CreateImage | This API is used to create a private image. You can:
| |
| Creating an Image (New) | hcloud IMS CreateImageInSafeMode | This API is used to create a private image. You can:
| |
| Registering an Image | hcloud IMS RegisterImage | This API is used to register an image file as an uninitialized private image on the cloud platform. | |
| Importing an Image File Quickly | hcloud IMS ImportImageQuick | 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. | |
| Importing an Image File Quickly (New) | hcloud IMS ImportImageQuickInSafeMode | 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. | |
| Creating a Full-ECS Image | hcloud IMS CreateWholeImage | This API is used to create a full-ECS image from an ECS or a Cloud Server Backup Service (CSBS) backup. This is an asynchronous API. A successful call only means the backend has received the request. To see if an image is created successfully, you need to use the asynchronous job query API to query the image creation status. For details, see Querying the Progress of an Asynchronous Job. | |
| Querying Supported Image OSs | hcloud IMS ListOsVersions | This API is used to query compatible ECS OSs in the current region. |
Image Sharing
| API Name | Command | Description | Operation |
|---|---|---|---|
| Adding Image Recipients | hcloud IMS BatchAddMembers | This is an extended API. It is used to share more than one image with multiple users. | |
| Updating the Image Sharing Status of a Recipient | hcloud IMS BatchUpdateMembers | This is an extended API used to batch accept or reject images shared with a user. | |
| Deleting Image Recipients | hcloud IMS BatchDeleteMembers | This is an extended API. It is used to stop sharing images. | |
| Querying Details About an Image Recipient | hcloud IMS ShowImageMember | This API is used to query details about an image recipient. | |
| Querying Image Recipients | hcloud IMS ListImageMembers | This API is used to query image recipients. |
Image Replication
| API Name | Command | Description | Operation |
|---|---|---|---|
| Replicating an Image Within a Region | hcloud IMS CopyImageInRegion | This is an extended API. It is used to replicate an image. When replicating an image, you can change the image attributes to meet the requirements of different scenarios. | |
| Replicating an Image Within a Region (New) | hcloud IMS CopyImageInRegionInSafeMode | This is an extended API. It is used to replicate an image. When replicating an image, you can change the image attributes to meet the requirements of different scenarios. | |
| Replicating an Image Across Regions | hcloud IMS CopyImageCrossRegion | This is an extended API. It is used to replicate a private image from one region to another. In the destination region, the replicated image can be used to create cloud servers identical to those in the source region. This allows you to migrate services between regions. |
Image Tagging
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Tags | hcloud IMS ListTags | This API is used to query image tags using search criteria. | |
| Adding or Modifying a Tag | hcloud IMS CreateOrUpdateTags | This API is used to add or modify a custom tag for an image. You can classify images by custom tag. | |
| Querying Images by Tag | hcloud IMS ListImageByTags | This API is used to filter or count images using tags or other conditions. | |
| Querying All Image Tags | hcloud IMS ListImagesTags | This API is used to query all image tags of a tenant. | |
| Querying Tags of an Image | hcloud IMS ListImageTags | This API is used to query all tags of a specified image. | |
| Adding an Image Tag | hcloud IMS AddImageTag | This API is used to add or update a single tag for a specified image. | |
| Adding or Deleting Image Tags in a Batch | hcloud IMS BatchAddOrDeleteTags | This API is used to add tags to, update tags of, or delete tags from an image in a batch. | |
| Deleting an Image Tag | hcloud IMS DeleteImageTag | This API is used to delete a specified tag from an image. | |
| Deleting Image Tags | hcloud IMS BatchDeleteTags | This API is used to batch delete tags from a specified image. |
Image Quotas
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Image Quotas | hcloud IMS ShowImageQuota | This is an extended API. It is used to query private image quotas of a tenant in the current region. |
Image Sharing (Native OpenStack APIs)
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Image Recipients (Native OpenStack API) | hcloud IMS GlanceListImageMembers | This API is used to query image recipients. | |
| Adding an Image Recipient (Native OpenStack API) | hcloud IMS GlanceAddImageMember | This API is used to add the project ID of a tenant that an image is to be shared with. | |
| Querying Details About an Image Recipient (Native OpenStack API) | hcloud IMS GlanceShowImageMember | This API is used to query details about an image recipient. | |
| Updating the Image Sharing Status of a Recipient (Native OpenStack API) | hcloud IMS GlanceUpdateImageMember | This is an extended API. It is used to batch accept or reject images shared with a user. | |
| Deleting an Image Recipient (Native OpenStack API) | hcloud IMS GlanceDeleteImageMember | This API is used to stop image sharing with a user. |
Image Tagging (Native OpenStack APIs)
| API Name | Command | Description | Operation |
|---|---|---|---|
| Adding a Tag (Native OpenStack API) | hcloud IMS GlanceCreateTag | This API is used to add a custom tag to an image. You can classify images by custom tag. | |
| Deleting a Tag (Native OpenStack API) | hcloud IMS GlanceDeleteTag | This API is used to delete a custom tag from a private image. |
Image Schemas (Native OpenStack APIs)
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying an Image Schema (Native OpenStack API) | hcloud IMS GlanceShowImageSchemas | This API is used to query the image schema, which allows you to view image attributes and their data types. | |
| Querying the Image Recipient List Schema (Native OpenStack API) | hcloud IMS GlanceListImageMemberSchemas | This API is used to query the image recipient list schema, which allows you to view image recipient attributes and their data types. | |
| Querying the Image List Schema (Native OpenStack API) | hcloud IMS GlanceListImageSchemas | This API is used to query the image list schema, which allows you to view detailed information and the data structure of an image list. | |
| Querying the Image Recipient Schema (Native OpenStack API) | hcloud IMS GlanceShowImageMemberSchemas | This API is used to query the image recipient schema, which allows you to view image recipient attributes and their data types. |
Images (Native OpenStack APIs)
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying Images (Native OpenStack API) | hcloud IMS GlanceListImages | This API is used to obtain the image list. | |
| Creating Image Metadata (Native OpenStack API) | hcloud IMS GlanceCreateImageMetadata | This API is used to create image metadata. After this API is called, only image metadata is created, and no actual image file is generated. | |
| Querying Image Details (Native OpenStack API) | hcloud IMS GlanceShowImage | This API is used to query details about a public or private image. | |
| Deleting an Image (Native OpenStack API) | hcloud IMS GlanceDeleteImage | This API is used to delete a private image. You can only delete your own private images. | |
| Updating an Image (Native OpenStack API) | hcloud IMS GlanceUpdateImage | This API is used to modify image information. |
API Version Query (Native OpenStack APIs)
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying API Versions (Native OpenStack API) | hcloud IMS ListVersions | This API is used to query API versions, such as version compatibility and domain name information of APIs. | |
| Querying an API Version (Native OpenStack API) | hcloud IMS ShowVersion | This API is used to query a specified API version, such as version compatibility and domain name information of an API. |
What is your overall rating for this page?
Thank 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