被邀請(qǐng)的阿里云賬號(hào)調(diào)用AcceptHandshake接受邀請(qǐng)。
接口說明
被邀請(qǐng)的阿里云賬號(hào)成功加入資源目錄后,會(huì)成為資源目錄的成員。資源目錄默認(rèn)使用被邀請(qǐng)的阿里云賬號(hào)名稱作為該成員的成員名稱和賬號(hào)名稱。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
HandshakeId | string | 是 | 邀請(qǐng) ID。 您可以調(diào)用 ListHandshakesForAccount 獲取邀請(qǐng) ID。 | h-Ih8IuPfvV0t0**** |
返回參數(shù)
示例
正常返回示例
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****"
}
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
400 | MissingParameter.HandshakeId | You must specify HandshakeId. | 邀請(qǐng)ID缺失,請(qǐng)指定目標(biāo)ID。 |
400 | InvalidParameter.HandshakeId | The HandshakeId is invalid. | 邀請(qǐng)ID無效,邀請(qǐng)ID應(yīng)以“h-”開頭+16位數(shù)字或英文字母。 |
404 | EntityNotExists.Handshake | The specified handshake does not exist. | 邀請(qǐng)不存在,請(qǐng)指定正確的邀請(qǐng)。 |
404 | SpecifiedResourceDirectoryNotExists | The specified resource directory does not exist. You must specify a valid resource directory. | 資源目錄不存在,請(qǐng)指定正確的資源目錄。 |
409 | HandshakeStatusMismatch | The invitation is invalid. | 握手狀態(tài)不匹配或邀請(qǐng)已失效。 |
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. | 賬號(hào)類型無效,請(qǐng)您使用企業(yè)類型賬號(hào)。 |
409 | NotSupport.Account.RealNameType | Your account is not a real-name of enterprise type, so you cannot accept the invitation. | 您的賬號(hào)非企業(yè)類型實(shí)名,無法接受邀請(qǐng)。 |
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|
暫無變更歷史