Adding a Share Member
Function
This interface is used to add members who can share a backup. Only ECS and VBS backups can be shared. Backups can be shared among different projects or users.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v3/{project_id}/backups/{backup_id}/members
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
backup_id |
Yes |
String |
Backup ID |
|
project_id |
Yes |
String |
Project ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
members |
No |
Array of strings |
Project IDs of the backup share members to be added |
|
domains |
No |
Array of strings |
Domain IDs of the backup share members to be added.
NOTE:
This feature is in the open beta test (OBT) phase and may be unavailable in some regions. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
members |
Array of Member objects |
Response parameters of adding a backup share member |
|
count |
Integer |
Number of share members that the backup is shared to |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Backup sharing status |
|
created_at |
String |
Backup sharing time, for example, 2020-02-05T10:38:34.209782 |
|
updated_at |
String |
Update time, for example, 2020-02-05T10:38:34.209782 |
|
backup_id |
String |
Backup ID. Default value: N/A For details about how to obtain the backup ID, see Obtaining a Backup ID. |
|
image_id |
String |
ID of the image created from the accepted backup |
|
dest_project_id |
String |
ID of the project with which the backup is shared |
|
vault_id |
String |
ID of the vault where the shared backup is stored |
|
id |
String |
ID of the shared record |
Example Requests
Adding members with whom the backup is shared
POST https://{endpoint}/v3/0605767b5780d5762fc5c0118072a564/backups/0b07081e-3ec7-4e77-8571-54e2947da422/members
{
"members" : [ "075e6035d300d48c2fd0c00b78b71ebf" ]
}
Example Responses
Status code: 200
OK
{
"members" : [ {
"status" : "pending",
"backup_id" : "0b07081e-3ec7-4e77-8571-54e2947da422",
"dest_project_id" : "075e6035d300d48c2fd0c00b78b71ebf",
"created_at" : "2020-02-05T10:38:34.210+00:00",
"id" : "3c5a3015-c3a0-4dc6-a1e2-917b90f62319"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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