资源使用者调用RejectResourceShareInvitation拒绝资源共享邀请。
接口说明
本文将提供一个示例,在cn-hangzhou地域,拒绝 ID 为i-yyTWbkjHArYh****的资源共享邀请。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceShareInvitationId |
string |
是 |
资源共享邀请 ID。 您可以调用 ListResourceShareInvitations 获取资源共享邀请 ID。 |
i-yyTWbkjHArYh**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
E446D6DE-BFC8-5F37-A494-33D7B118147D |
| ResourceShareInvitation |
object |
资源共享邀请信息。 |
|
| ResourceShareInvitationId |
string |
资源共享邀请 ID。 |
i-yyTWbkjHArYh**** |
| ResourceShareId |
string |
共享单元 ID。 |
rs-JoA1Ayjm**** |
| ResourceShareName |
string |
共享单元名称。 |
example |
| SenderAccountId |
string |
邀请者的阿里云账号 ID。 |
151266687691**** |
| ReceiverAccountId |
string |
被邀请者的阿里云账号 ID。 |
134254031178**** |
| CreateTime |
string |
邀请创建时间(UTC 时间)。 |
2022-09-02T07:07:30.809Z |
| Status |
string |
邀请状态。取值:
|
Rejected |
示例
正常返回示例
JSON格式
{
"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"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.ResourceShareInvitationId | The ResourceShareInvitationId is invalid. | |
| 400 | MissingParameter.ResourceShareInvitationId | You must specify ResourceShareInvitationId. | |
| 409 | InvitationStatus.Expired | The resource share invitation status is expired. | |
| 409 | EntityNotExists.ResourceShareInvitation | The resource share invitation does not exist in the current account. | |
| 409 | InvitationStatus.AlreadyRejected | The resource share invitation status is rejected. | |
| 409 | InvitationStatus.AlreadyAccepted | The resource share invitation status is alredy accepted. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。