Requesting Shared Images

Requesting Shared Images

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 see a list of images which are shared with a given tenant. We issue a GET request to http://glance.openstack.example.org/shared-images/tenant1. We will get back JSON data such as the following:

{'shared_images': [
 {'image_id': 1,
  'can_share': false}
 ...]}

The `image_id` field identifies an image shared with the tenant named by member_id. If the tenant is authorized to further share the image, the `can_share` field is `true`.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.