Updating the Image Sharing Status of a Recipient (Native OpenStack API V2, Deprecated)
Function
This API is an extension one and used to accept or reject images shared with a user in a batch.
This API has been deprecated. You are advised to use the API in Updating the Image Sharing Status of a Recipient.
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| status | Yes | String | Whether images shared with a recipient will be accepted or rejected. Available values include:
|
| vault_id | No | String | Vault ID. This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup. You can obtain the vault ID from the CBR console or Querying the Vault List. |
Example Request
- Updating the image sharing status to accepted
1 2 3 4
PUT https://{Endpoint}/v2/images/d164b5df-1bc3-4c3f-893e-3e471fd16e64/members/edc89b490d7d4392898e19b2deb34797 { "status": "accepted" }
- Updating the sharing status of an image created from a CBR backup to accepted (vault ID: 6yhtb5df-1bc3-4c3f-893e-3e4716yhgt61)
1 2 3 4 5
PUT https://{Endpoint}/v2/images/d164b5df-1bc3-4c3f-893e-3e471fd16e64/members/edc89b490d7d4392898e19b2deb34797 { "status": "accepted", "vault_id": "6yhtb5df-1bc3-4c3f-893e-3e4716yhgt61" }
Response
- Response parameters
Parameter
Type
Description
status
String
Image sharing status.
created_at
String
Time when the sharing was performed. The value is in UTC format.
updated_at
String
Time when the sharing status was updated. The value is in UTC format.
image_id
String
Image ID.
member_id
String
Recipient ID.
schema
String
Sharing schema.
- Example response
STATUS CODE 200
1 2 3 4 5 6 7 8
{ "status": "accepted", "created_at": "2016-09-01T02:05:14Z", "updated_at": "2016-09-01T02:37:11Z", "image_id": "d164b5df-1bc3-4c3f-893e-3e471fd16e64", "member_id": "edc89b490d7d4392898e19b2deb34797", "schema": "/v2/schemas/member" }
Returned Values
- Normal
- Abnormal
Returned Value
Description
400 Bad Request
Request error.
401 Unauthorized
Authentication failed.
403 Forbidden
You do not have the rights to perform the operation.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
The service is unavailable.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot