ImagesΒΆ

Image interface.

class novaclient.v1_1.images.Image(manager, info, loaded=False)

Bases: novaclient.openstack.common.apiclient.base.Resource

An image is a collection of files used to create or rebuild a server.

Image.HUMAN_ID = True
Image.delete()

Delete this image.

class novaclient.v1_1.images.ImageManager(api)

Bases: novaclient.base.ManagerWithFind

Manage Image resources.

ImageManager.delete(image)

Delete an image.

It should go without saying that you can’t delete an image that you didn’t create.

Parameters:image – The Image (or its ID) to delete.
ImageManager.delete_meta(image, keys)

Delete metadata from an image

Parameters:
  • image – The Image to delete metadata
  • keys – A list of metadata keys to delete from the image
ImageManager.get(image)

Get an image.

Parameters:image – The ID of the image to get.
Return type:Image
ImageManager.list(detailed=True, limit=None)

Get a list of all images.

Return type:list of Image
Parameters:limit – maximum number of images to return.
ImageManager.resource_class

alias of Image

ImageManager.set_meta(image, metadata)

Set an images metadata

Parameters:
  • image – The Image to add metadata to
  • metadata – A dict of metadata to add to the image

Previous topic

Flavors

Next topic

Servers

This Page