调用DeclineHandshake拒绝邀请。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DeclineHandshake

要执行的操作。取值:DeclineHandshake。

HandshakeId String h-ycm4rp****

邀请ID。

返回数据

名称 类型 示例值 描述
Handshake Struct

邀请信息。

CreateTime String 2018-08-10T09:55:41Z

邀请的创建时间。

ExpireTime String 2018-08-10T09:55:41Z

邀请的过期时间。

HandshakeId String h-ycm4rp****

邀请ID。

MasterAccountId String 172841235500****

资源目录主账号ID。

MasterAccountName String Alice

资源目录主账号名称。

ModifyTime String 2018-08-10T09:55:41Z

邀请的修改时间。

Note String 欢迎您加入

备注。

ResourceDirectoryId String rd-abcdef****

资源目录ID。

Status String Declined

邀请状态。

  • Pending:等待确认。
  • Accepted:已接受。
  • Cancelled:已取消。
  • Declined:已拒绝。
  • Expired:超时。
TargetEntity String someone@example.com

被邀请账号ID或登录邮箱。

TargetType String Email

被邀请账号类型。

  • Account:账号ID。
  • Email:账号登录邮箱。
RequestId String 9B34724D-54B0-4A51-B34D-4512372FE1BE

请求ID。

示例

请求示例

https://resource-manager.aliyuncs.com/?Action=DeclineHandshake
&HandshakeId=h-ycm4rp****
&<公共请求参数>

正常返回示例

XML 格式

<DeclineHandshakeResponse>
	  <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
	  <Handshake>
		    <HandshakeId>h-ycm4rp****</HandshakeId>
		    <ResourceDirectoryId>rd-abcdef****</ResourceDirectoryId>
		    <MasterAccountId>172841235500****</MasterAccountId>
		    <MasterAccountName>Alice</MasterAccountName>
		    <TargetEntity>someone@example.com</TargetEntity>
		    <TargetType>Email</TargetType>
		    <Note>欢迎您加入</Note>
		    <Status>Declined</Status>
		    <CreateTime>2018-08-10T09:55:41Z</CreateTime>
		    <ModifyTime>2018-08-10T09:55:41Z</ModifyTime>
		    <ExpireTime>2018-08-17T09:55:41Z7</ExpireTime>
	  </Handshake>
</DeclineHandshakeResponse>

JSON 格式

{
    "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
    "Handshake": {
        "HandshakeId": "h-ycm4rp****",
        "ResourceDirectoryId": "rd-abcdef****",
        "MasterAccountId": "172841235500****",
        "MasterAccountName": "Alice",
        "TargetEntity": "someone@example.com",
        "TargetType": "Email",
        "Note": "欢迎您加入",
        "Status": "Declined",
        "CreateTime": "2018-08-10T09:55:41Z",
        "ModifyTime": "2018-08-10T09:55:41Z",
        "ExpireTime": "2018-08-17T09:55:41Z7"
    }
}

错误码

HttpCode 错误码 错误信息 描述
400 MissingParameter.HandshakeId You must specify HandshakeId. 邀请ID缺失,请指定目标ID。
400 InvalidParameter.HandshakeId The HandshakeId is invalid. 邀请ID无效,邀请ID应以“h-”开头+16位数字或英文字母。
404 EntityNotExists.Handshake The specified handshake does not exist. 邀请不存在,请指定正确的邀请。
409 HandshakeStatusMismatch The invitation is invalid. 握手状态不匹配或邀请已失效。

访问错误中心查看更多错误码。