glance.api.v1.members
Moduleglance.api.v1.members
Module¶glance.api.v1.members.
Controller
[source]¶Bases: glance.api.v1.controller.BaseController
default
(req, image_id, id, body=None)[source]¶This will cover the missing ‘show’ and ‘create’ actions
index
(req, image_id)[source]¶Return a list of dictionaries indicating the members of the image, i.e., those tenants the image is shared with.
Parameters: |
|
---|---|
Returns: | The response body is a mapping of the following form |
{'members': [
{'member_id': <MEMBER>,
'can_share': <SHARE_PERMISSION>, ...}, ...
]}
Retrieves list of image memberships for the given member.
Parameters: |
|
---|---|
Returns: | The response body is a mapping of the following form |
{'shared_images': [
{'image_id': <IMAGE>,
'can_share': <SHARE_PERMISSION>, ...}, ...
]}
update
(req, *args, **kwargs)[source]¶Adds a membership to the image, or updates an existing one. If a body is present, it is a dict with the following format
{'member': {
'can_share': [True|False]
}}
If can_share is provided, the member’s ability to share is set accordingly. If it is not provided, existing memberships remain unchanged and new memberships default to False.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.