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 |
update_image
(image, **attrs)¶Update a image
Parameters: | image – Either the ID of a image or a
Image instance. |
---|---|
Attrs kwargs: | The attributes to update on the image represented
by value . |
Returns: | The updated image |
Return type: | Image |
delete_image
(image, ignore_missing=True)¶Delete an image
Parameters: | |
---|---|
Returns: |
|
get_image
(image)¶Get a single image
Parameters: | image – The value can be the ID of an image or a
Image instance. |
---|---|
Returns: | One Image |
Raises: | ResourceNotFound
when no resource can be found. |
find_image
(name_or_id, ignore_missing=True)¶Find a single image
Parameters: |
|
---|---|
Returns: | One |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.