- What's New
- Service Overview
- Getting Started
- User Guide
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- APIs
- Permissions and Supported Actions
- Appendixes
- Change History
- General Reference
Copied.
Accepting a Resource Sharing Invitation
Function
This API is used to accept a resource sharing invitation from other accounts.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
POST https://{endpoint}/v1/resource-share-invitations/{resource_share_invitation_id}/accept
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
resource_share_invitation_id |
Yes |
String |
ID of the resource sharing invitation. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Security-Token |
No |
String |
Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
resource_share_invitation |
ResourceShareInvitation object |
Details about the resource sharing invitation. |
Parameter |
Type |
Description |
---|---|---|
receiver_account_id |
String |
ID of the account that receives the resource sharing invitation. |
resource_share_id |
String |
ID of the resource share. |
resource_share_name |
String |
Name of the resource share. |
resource_share_invitation_id |
String |
ID of the resource sharing invitation. |
sender_account_id |
String |
ID of the account that sends a resource sharing invitation. |
status |
String |
Status of the resource sharing invitation. |
created_at |
String |
Time when the invitation was created. |
updated_at |
String |
Time when the invitation was last updated. |
Example Requests
Accepting resource sharing invitations from other accounts
POST https://{endpoint}/v1/resource-share-invitations/{resource_share_invitation_id}/accept
Example Responses
Status code: 200
Request succeeded.
{ "resource_share_invitation" : { "receiver_account_id" : "string", "resource_share_id" : "string", "resource_share_name" : "string", "resource_share_invitation_id" : "string", "sender_account_id" : "string", "status" : "string", "created_at" : "2022-08-22T12:28:26.631Z", "updated_at" : "2022-08-22T12:28:26.631Z" } }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
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