Replacing a Membership List for an ImageΒΆ

Note

The Images API v1 has been DEPRECATED in the Newton release. The migration path is to use the Images API v2 instead of version 1 of the API. The Images API v1 will ultimately be removed, following the OpenStack standard deprecation policy.

The full membership list for a given image may be replaced. We issue a PUT request to http://glance.openstack.example.org/images/1/members with a body of the following form:

{'memberships': [
 {'member_id': 'tenant1',
  'can_share': false}
 ...]}

All existing memberships which are not named in the replacement body are removed, and those which are named have their `can_share` settings changed as specified. (The `can_share` setting may be omitted, which will cause that setting to remain unchanged in the existing memberships.) All new memberships will be created, with `can_share` defaulting to `false` if it is not specified.

Previous topic

Removing a Member from an Image

Next topic

Filtering Images Returned via GET /images and GET /images/detail

Project Source

This Page