調用ListHandshakesForAccount查詢當前賬號的邀請記錄。

使用說明

本文將提供一個示例,查詢當前企業管理賬號172841235500****的邀請記錄,返回結果顯示該賬號下存在兩條邀請記錄。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

請求參數

名稱 類型 是否必選 示例值 描述
Action String ListHandshakesForAccount

要執行的操作。取值:ListHandshakesForAccount

PageNumber Integer 1

頁碼。

起始值:1。默認值:1。

PageSize Integer 10

分頁時每頁顯示的數據條數。

取值范圍:1~100。默認值:10。

關于公共請求參數的詳情,請參見公共參數

返回數據

名稱 類型 示例值 描述
TotalCount Integer 2

邀請記錄總條數。

RequestId String 9B34724D-54B0-4A51-B34D-4512372FE1BE

請求ID。

PageSize Integer 10

分頁時每頁顯示的數據條數。

PageNumber Integer 1

頁碼。

Handshakes Array of Handshake

邀請記錄。

Handshake
Status String Pending

邀請狀態。

  • Pending:等待確認。
  • Accepted:已接受。
  • Cancelled:已取消。
  • Declined:已拒絕。
  • Expired:超時。
ExpireTime String 2018-08-24T09:55:41Z

邀請的過期時間(UTC時間)。

ResourceDirectoryId String rd-abcdef****

資源目錄ID。

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

邀請的創建時間(UTC時間)。

Note String 歡迎您加入

備注。

TargetEntity String someone@example.com

被邀請的阿里云賬號ID或登錄郵箱。

MasterAccountId String 172841235500****

資源目錄管理賬號ID。

MasterAccountName String CompanyA

資源目錄管理賬號名稱。

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

邀請的修改時間(UTC時間)。

TargetType String Email

被邀請的阿里云賬號類型。

  • Account:賬號ID。
  • Email:賬號登錄郵箱。
HandshakeId String h-4N57QZzCTtES****

邀請ID。

示例

請求示例

https://resourcemanager.aliyuncs.com/?Action=ListHandshakesForAccount
&<公共請求參數>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ListHandshakesForAccountResponse>
    <RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <TotalCount>2</TotalCount>
    <Handshakes>
        <Handshake>
            <HandshakeId>h-4N57QZzCTtES****</HandshakeId>
            <ResourceDirectoryId>rd-abcdef****</ResourceDirectoryId>
            <MasterAccountId>172841235500****</MasterAccountId>
            <MasterAccountName>CompanyA</MasterAccountName>
            <TargetEntity>someone@example.com</TargetEntity>
            <TargetType>Email</TargetType>
            <Note>歡迎您加入</Note>
            <Status>Pending</Status>
            <CreateTime>2018-08-10T09:55:41Z</CreateTime>
            <ModifyTime>2018-08-10T09:55:41Z</ModifyTime>
            <ExpireTime>2018-08-24T09:55:41Z</ExpireTime>
        </Handshake>
        <Handshake>
            <HandshakeId>h-BeJZW63fHT4l****</HandshakeId>
            <ResourceDirectoryId>rd-abcdef****</ResourceDirectoryId>
            <MasterAccountId>172841235500****</MasterAccountId>
            <MasterAccountName>CompanyA</MasterAccountName>
            <TargetEntity>172841235500****</TargetEntity>
            <TargetType>Account</TargetType>
            <Note>歡迎您加入</Note>
            <Status>Pending</Status>
            <CreateTime>2018-08-10T09:55:41Z</CreateTime>
            <ModifyTime>2018-08-10T09:55:41Z</ModifyTime>
            <ExpireTime>2018-08-24T09:55:41Z</ExpireTime>
        </Handshake>
    </Handshakes>
</ListHandshakesForAccountResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "PageNumber" : 1,
  "PageSize" : 10,
  "TotalCount" : 2,
  "Handshakes" : {
    "Handshake" : [ {
      "HandshakeId" : "h-4N57QZzCTtES****",
      "ResourceDirectoryId" : "rd-abcdef****",
      "MasterAccountId" : "172841235500****",
      "MasterAccountName" : "CompanyA",
      "TargetEntity" : "someone@example.com",
      "TargetType" : "Email",
      "Note" : "歡迎您加入",
      "Status" : "Pending",
      "CreateTime" : "2018-08-10T09:55:41Z",
      "ModifyTime" : "2018-08-10T09:55:41Z",
      "ExpireTime" : "2018-08-24T09:55:41Z"
    }, {
      "HandshakeId" : "h-BeJZW63fHT4l****",
      "ResourceDirectoryId" : "rd-abcdef****",
      "MasterAccountId" : "172841235500****",
      "MasterAccountName" : "CompanyA",
      "TargetEntity" : "172841235500****",
      "TargetType" : "Account",
      "Note" : "歡迎您加入",
      "Status" : "Pending",
      "CreateTime" : "2018-08-10T09:55:41Z",
      "ModifyTime" : "2018-08-10T09:55:41Z",
      "ExpireTime" : "2018-08-24T09:55:41Z"
    } ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。