全部產品
Search
文件中心

Resource Management:AcceptHandshake - 接受邀請

更新時間:Dec 21, 2025

被邀請的阿里雲帳號調用AcceptHandshake接受邀請。

介面說明

被邀請的阿里雲帳號成功加入資來源目錄後,會成為資來源目錄的成員。資來源目錄預設使用被邀請的阿里雲帳號名稱作為該成員的成員名稱和帳號名稱。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

HandshakeId

string

邀請 ID。

您可以調用 ListHandshakesForAccount 擷取邀請 ID。

h-Ih8IuPfvV0t0****

返回參數

名稱

類型

描述

樣本值

object

返回結果。

RequestId

string

請求 ID。

5828C836-3286-49A6-9006-15231BB19342

Handshake

object

邀請資訊。

Status

string

邀請狀態。取值:

  • Pending:等待確認。

  • Accepted:已接受。

  • Cancelled:已取消。

  • Declined:已拒絕。

  • Expired:逾時。

Accepted

ExpireTime

string

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

2021-01-20T02:15:40Z

ResourceDirectoryId

string

資來源目錄 ID。

rd-3G****

CreateTime

string

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

2021-01-06T02:15:40Z

Note

string

備忘。

歡迎您加入

TargetEntity

string

被邀請的阿里雲帳號 ID 或登入郵箱。

177242285274****

MasterAccountId

string

資來源目錄的管理帳號 ID。

151266687691****

MasterAccountName

string

資來源目錄的管理帳號名稱。

CompanyA

ModifyTime

string

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

2021-01-06T02:16:40Z

TargetType

string

被邀請的阿里雲帳號類型。取值:

  • Account:阿里雲帳號 ID。

  • Email:阿里雲帳號登入郵箱。

Account

HandshakeId

string

邀請 ID。

h-Ih8IuPfvV0t0****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "5828C836-3286-49A6-9006-15231BB19342",
  "Handshake": {
    "Status": "Accepted",
    "ExpireTime": "2021-01-20T02:15:40Z",
    "ResourceDirectoryId": "rd-3G****",
    "CreateTime": "2021-01-06T02:15:40Z",
    "Note": "歡迎您加入",
    "TargetEntity": "177242285274****",
    "MasterAccountId": "151266687691****",
    "MasterAccountName": "CompanyA",
    "ModifyTime": "2021-01-06T02:16:40Z",
    "TargetType": "Account",
    "HandshakeId": "h-Ih8IuPfvV0t0****"
  }
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 MissingParameter.HandshakeId You must specify HandshakeId.
400 InvalidParameter.HandshakeId The HandshakeId is invalid.
404 EntityNotExists.Handshake The specified handshake does not exist.
404 SpecifiedResourceDirectoryNotExists The specified resource directory does not exist. You must specify a valid resource directory.
409 HandshakeStatusMismatch The invitation is invalid.
409 NotSupport.AccountInAnotherResourceDirectory Your account is a management account for another resource directory or a member of another resource directory.
409 Invalid.AccountType The specified profile type of account is invalid.
409 NotSupport.Account.RealNameType Your account is not a real-name of enterprise type, so you cannot accept the invitation.

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

變更歷史

更多資訊,參考變更詳情