Updated on 2024-11-14 GMT+08:00

Image Management

Permission

API

Action

IAM Project

Enterprise Project

Querying Images

GET /v2/cloudimages

ims:images:list

NOTE:

For shared images, enterprise projects are not supported.

Querying Supported Image OSs

GET /v1/cloudimages/os_version

ims:images:list

×

Updating Image Information

PATCH /v2/cloudimages/{image_id}

  • ims:images:update
  • ims:serverImages:create (only for migration to enterprise projects)

Creating an Image

POST /v2/cloudimages/action

NOTE:

If you use an external image file to create an image, you must have Tenant Administrator permissions for OBS.

ims:serverImages:create

Importing an Image File Quickly

POST /v2/cloudimages/quickimport/action

NOTE:

You must have Tenant Administrator permissions for OBS.

  • ims:serverImages:create (required only for quickly importing system disk images)
  • ims:dataImages:create (required only for quickly importing data disk images)

Creating a Data Disk Image Using an External Image File

POST /v1/cloudimages/dataimages/action

NOTE:

You must have Tenant Administrator permissions for OBS.

ims:dataImages:create

Creating a Full-ECS Image

POST /v1/cloudimages/wholeimages/action

NOTE:

You must have Administrator permissions for CSBS or Admin permissions for CBR.

ims:wholeImages:create

Registering an Image

PUT /v1/cloudimages/{image_id}/upload

NOTE:
  • You must have Tenant Administrator permissions for OBS.
  • You have permission to use enterprise projects when you register an image only if you select the default enterprise project.

ims:images:upload

Exporting an Image

POST /v1/cloudimages/{image_id}/file

NOTE:

You must have Tenant Administrator permissions for OBS.

ims:images:export

Querying Images (Native OpenStack API)

GET /v2/images

ims:images:list

x

Querying Image Details (Native OpenStack API)

GET /v2/images/{image_id}

ims:images:get

Updating Image Information (Native OpenStack API)

PATCH /v2/images/{image_id}

ims:images:update

Deleting an Image (Native OpenStack API)

DELETE /v2/images/{image_id}

ims:images:delete

Creating Image Metadata (Native OpenStack API)

POST /v2/images

ims:images:create

x

Uploading an Image (Native OpenStack API)

PUT /v2/images/{image_id}/file

  • ims:images:get
  • ims:images:update
  • ims:images:upload

x

Querying the API Version (Native OpenStack API)

GET /

N/A

x

Querying Image Details (Native OpenStack API V1.1, Discarded)

GET /v1.1/images/detail

ims:images:list

x

Querying Image Metadata (Native OpenStack API V1, Discarded)

HEAD /v1/images/{image_id}

ims:images:get

x

Deleting an Image (Native OpenStack API V1.1, Discarded)

DELETE /v1.1/images/{image_id}

ims:images:delete

x