The status of a shared image can be updated after the tenant accepts or rejects the image.
The token obtained from IAM is valid for only 24 hours. If you want to use a token for authentication, you can cache it to avoid frequently calling the IAM API.
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.
{
"status": "accepted" //accepted indicates that the shared image will be accepted.
}
{
"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.