Rejects a resource sharing invitation.
Operation description
This topic provides an example on how to call the API operation to reject the resource sharing invitation i-yyTWbkjHArYh**** in the cn-hangzhou region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ResourceShareInvitationId | string | Yes | The ID of the resource sharing invitation. You can call the ListResourceShareInvitations operation to obtain the ID of a resource sharing invitation. | i-yyTWbkjHArYh**** |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "E446D6DE-BFC8-5F37-A494-33D7B118147D",
"ResourceShareInvitation": {
"ResourceShareInvitationId": "i-yyTWbkjHArYh****",
"ResourceShareId": "rs-JoA1Ayjm****",
"ResourceShareName": "example",
"SenderAccountId": "151266687691****",
"ReceiverAccountId": "134254031178****",
"CreateTime": "2022-09-02T07:07:30.809Z",
"Status": "Rejected"
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| The invitation ID is invalid. | |||
| You must specify an invitation ID. | |||
| The invitation has expired. | |||
| The invitation does not exist. | |||
| The invitation has been rejected. | |||
| The invitation has been accepted. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
