A private image can be shared with other tenants. When sharing an image, you need add a project ID of the tenant with whom you are going to share the image.
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.
{ "member": "edc89b490d7d4392898e19b2deb34797" //Member ID (that is, project ID of the image recipient) }
{ "status": "pending", //Image is being shared "created_at": "2016-09-01T02:05:14Z", //Time when the image is shared "updated_at": "2016-09-01T02:05:14Z", //Time when the image status 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 errors, see Status Codes.