The glanceclient.v1.images Module

class glanceclient.v1.images.Image(manager, info, loaded=False)

Bases: glanceclient.common.base.Resource

data(**kwargs)
delete()
update(**fields)
class glanceclient.v1.images.ImageManager(api)

Bases: glanceclient.common.base.Manager

create(**kwargs)

Create an image

TODO(bcwaldon): document accepted params

data(image, do_checksum=True)

Get the raw data for a specific image.

Parameters:
  • image – image object or id to look up
  • do_checksum – Enable/disable checksum validation
Return type:

iterable containing image data

delete(image)

Delete an image.

get(image)

Get the metadata for a specific image.

Parameters:image – image object or id to look up
Return type:Image
list(**kwargs)

Get a list of images.

Parameters:
  • page_size – number of items to request in each paginated request
  • limit – maximum number of images to return
  • marker – begin returning images that appear later in the image list than that represented by this image id
  • filters – dict of direct comparison filters that mimics the structure of an image object
Return type:

list of Image

resource_class

alias of Image

update(image, **kwargs)

Update an image

TODO(bcwaldon): document accepted params

This Page