For details on how to use image, see Using OpenStack Image
The image high-level interface is available through the image member of a
Connection object.  The image member will
only be added if the service is detected.
openstack.image.v1._proxy.Proxy(session)¶upload_image(**attrs)¶Upload a new image from attributes
| Parameters: | attrs (dict) – Keyword arguments which will be used to create
a Image,
comprised of the properties on the Image class. | 
|---|---|
| Returns: | The results of image creation | 
| Return type: | Image | 
delete_image(image, ignore_missing=True)¶Delete an image
| Parameters: | |
|---|---|
| Returns: | 
 | 
find_image(name_or_id, ignore_missing=True)¶Find a single image
| Parameters: | 
 | 
|---|---|
| Returns: | One  | 
get_image(image)¶Get a single image
| Parameters: | image – The value can be the ID of an image or a Imageinstance. | 
|---|---|
| Returns: | One Image | 
| Raises: | ResourceNotFoundwhen no resource can be found. | 
For details on how to use image, see Using OpenStack Image
The image high-level interface is available through the image member of a
Connection object.  The image member will
only be added if the service is detected.
openstack.image.v2._proxy.Proxy(session)¶upload_image(container_format=None, disk_format=None, data=None, **attrs)¶Upload a new image from attributes
| Parameters: | 
 | 
|---|---|
| Returns: | The results of image creation | 
| Return type: | 
download_image(image)¶Download an image
| Parameters: | image – The value can be either the ID of an image or a Imageinstance. | 
|---|---|
| Returns: | The bytes comprising the given Image. | 
delete_image(image, ignore_missing=True)¶Delete an image
| Parameters: | |
|---|---|
| Returns: | 
 | 
find_image(name_or_id, ignore_missing=True)¶Find a single image
| Parameters: | 
 | 
|---|---|
| Returns: | One  | 
get_image(image)¶Get a single image
| Parameters: | image – The value can be the ID of a image or a Imageinstance. | 
|---|---|
| Returns: | One Image | 
| Raises: | ResourceNotFoundwhen no resource can be found. | 
images(**query)¶Return a generator of images
| Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. | 
|---|---|
| Returns: | A generator of image objects | 
| Return type: | Image | 
update_image(image, **attrs)¶Update a image
| Parameters: | image – Either the ID of a image or a Imageinstance. | 
|---|---|
| Attrs kwargs: | The attributes to update on the image represented
by value. | 
| Returns: | The updated image | 
| Return type: | Image | 
deactivate_image(image)¶Deactivate an image
| Parameters: | image – Either the ID of a image or a Imageinstance. | 
|---|---|
| Returns: | None | 
reactivate_image(image)¶Deactivate an image
| Parameters: | image – Either the ID of a image or a Imageinstance. | 
|---|---|
| Returns: | None | 
add_tag(image, tag)¶Add a tag to an image
| Parameters: | |
|---|---|
| Returns: | None | 
remove_tag(image, tag)¶Remove a tag to an image
| Parameters: | |
|---|---|
| Returns: | None | 
add_member(image, **attrs)¶Create a new member from attributes
| Parameters: | |
|---|---|
| Returns: | The results of member creation | 
| Return type: | 
remove_member(member, image, ignore_missing=True)¶Delete a member
| Parameters: | |
|---|---|
| Returns: | 
 | 
find_member(name_or_id, image, ignore_missing=True)¶Find a single member
| Parameters: | 
 | 
|---|---|
| Returns: | One  | 
get_member(member, image)¶Get a single member on an image
| Parameters: | |
|---|---|
| Returns: | One  | 
| Raises: | 
 | 
members(image)¶Return a generator of members
| Parameters: | image – This is the image that the member belongs to,
the value can be the ID of a image or a Imageinstance. | 
|---|---|
| Returns: | A generator of member objects | 
| Return type: | Member | 
update_member(member, image, **attrs)¶Update the member of an image
| Parameters: | |
|---|---|
| Attrs kwargs: | The attributes to update on the member represented
by  | 
| Returns: | The updated member | 
| Return type: | 
 
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.