• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Python
  6. IMS

IMS

Interface

Method

API

Image Operations

upload_image(self, container_format=None, disk_format=None,

POST /v2/images Create an image PUT /v2/images/{image_id}/file Upload binary image data

delete_image(self, image, ignore_missing=True)

DELETE /v2/images/{image_id} Delete an image

find_image(self, name_or_id, ignore_missing=True)

GET /v2/images Show images

get_image(self, image)

GET /v2/images/{image_id} Show image details

images(self, **query)

GET /v2/images Show images

add_tag(self, image, tag)

PUT /v2/images/{image_id}/tags/{tag} Add image tag

remove_tag(self, image, tag)

DELETE /v2/images/{image_id}/tags/{tag} Delete image tag

Member Operations

add_member(self, image, **attrs)

POST /v2/images/{image_id}/members Create image member

remove_member(self, member, image, ignore_missing=True)

DELETE /v2/images/{image_id}/members/{member_id} Delete image member

find_member(self, name_or_id, image, ignore_missing=True)

GET /v2/images/{image_id}/members List image members

get_member(self, member, image)

GET /v2/images/{image_id}/members/{member_id} Show image member details

members(self, image)

GET /v2/images/{image_id}/members List image members

update_member(self, member, image, **attrs)

PUT /v2/images/{image_id}/members/{member_id} Update image member