Adding a Member to 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.

We want to authorize a tenant to access a private image. We issue a PUT request to http://glance.openstack.example.org/images/1/members/tenant1. With no body, this will add the membership to the image, leaving existing memberships unmodified and defaulting new memberships to have `can_share` set to `false`. We may also optionally attach a body of the following form:

{'member':
 {'can_share': true}
}

If such a body is provided, both existing and new memberships will have `can_share` set to the provided value (either `true` or `false`). This query will return a 204 (“No Content”) status code.

Previous topic

Requesting Image Memberships

Next topic

Removing a Member from an Image

Project Source

This Page