You need to enable JavaScript to run this app.
导航
RejectResourceShareInvitation - 拒绝共享邀请
最近更新时间:2025.03.03 16:21:37首次发布时间:2025.03.03 16:21:37

拒绝共享邀请

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

RejectResourceShareInvitation

要执行的操作,取值:RejectResourceShareInvitation。

Version
String

2024-01-01

API的版本,取值:2024-01-01。

ResourceShareInvitationTrn
String

trn:resource_share:cn-beijing:2000000000:invitation/i-06a***1e4772

共享邀请对应的Trn

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=RejectResourceShareInvitation&Version=2024-01-01&ResourceShareInvitationTrn=trn:resource_share:cn-shanghai:2000000000:invitation/i-01***bd32dc HTTP/1.1
Host: x.y.z
X-Date: 20250225T060548Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250225/cn-beijing/resource_share/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20250225140527149136094099FB1293",
    "Action": "RejectResourceShareInvitation",
    "Version": "2024-01-01",
    "Service": "resource_share",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
MissingParameter

Required parameter[%v] is not found

参数缺失,具体缺失的参数在会在Error Message中给出

400
InvalidInvitation

invitation[%v] has been accepted/rejected/expired

无效的共享邀请

404
InvitationNotFound

invitation[%v] not found

找不到共享邀请记录,请确认传入的InvitationTrn是否正确

404
ResourceShareNotFound

resource-share[%v] not found

找不到共享单元,传入的共享单元Trn不存在,或已被删除

500
InternalError

Something went wrong in internal service, please try again later

服务内部系统错误,往往是由服务内部组件异常、网络异常或服务自身bug导致,请及时联系相关管理员进行排查确认