forked from docs/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
4.0 KiB
4.0 KiB
Querying Tenants
Scenario
Tenants with whom you have shared an image can be filtered using search criteria and displayed in a list.
Involved APIs
If you use a token for authentication, you must obtain the token and add X-Auth-Token to the request header of the IMS API when making an API call.
Procedure
- Obtain the token.
- Send GET https://IMS endpoint/v2/images/Image ID/members/.
- Add X-Auth-Token to the request header.
- Check the response parameters.
{ "status": "accepted", //Sharing status (accepted indicates that the shared image will be accepted.) "created_at": "2016-09-01T02:05:14Z", //Time when the image is shared "updated_at": "2016-09-01T02:37:11Z", //Time when the image is updated "image_id": "d164b5df-1bc3-4c3f-893e-3e471fd16e64", //Image ID "member_id": "edc89b490d7d4392898e19b2deb34797" //Member ID (that is, project ID of the image recipient) "schema": "/v2/schemas/member" //Image sharing schema }For details about status codes for request exceptions, see Status Codes.
Parent topic: Sharing an Image
