glanceclient.v2.images.
Controller
(http_client, schema_client)¶Bases: object
add_location
(image_id, url, metadata, validation_data=None)¶Add a new location entry to an image’s list of locations.
It is an error to add a URL that is already present in the list of locations.
Parameters: |
|
---|---|
Returns: | The updated image |
create
(**kwargs)¶Create an image.
data
(image_id, do_checksum=True, allow_md5_fallback=False)¶Retrieve data of an image.
When do_checksum is enabled, validation proceeds as follows:
Parameters: |
|
---|---|
Returns: | An iterable body or |
deactivate
(image_id)¶Deactivate an image.
delete
(image_id)¶Delete an image.
delete_locations
(image_id, url_set)¶Remove one or more location entries of an image.
Parameters: |
|
---|---|
Returns: | None |
get
(image_id)¶get_import_info
()¶Get Import info from discovery endpoint.
get_stores_info
()¶Get available stores info from discovery endpoint.
image_import
(image_id, method='glance-direct', uri=None, backend=None)¶Import Image via method.
list
(**kwargs)¶Retrieve a listing of Image objects.
Parameters: | page_size – Number of images to request in each paginated request. |
---|---|
Returns: | generator over list of Images. |
model
¶reactivate
(image_id)¶Reactivate an image.
stage
(image_id, image_data, image_size=None)¶Upload the data to image staging.
Parameters: |
|
---|
unvalidated_model
¶update
(image_id, remove_props=None, **kwargs)¶Update attributes of an image.
Parameters: |
|
---|
update_location
(image_id, url, metadata)¶Update an existing location entry in an image’s list of locations.
The URL specified must be already present in the image’s list of locations.
Parameters: |
|
---|---|
Returns: | The updated image |
upload
(image_id, image_data, image_size=None, u_url=None, backend=None)¶Upload the data for an image.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.