招待を承諾します。
操作説明
招待された Alibaba Cloud アカウントがリソースディレクトリに参加すると、そのアカウントはリソースディレクトリのメンバーになります。デフォルトでは、招待された Alibaba Cloud アカウントの名前が、リソースディレクトリ内でのアカウントの表示名として使用されます。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| HandshakeId |
string |
必須 |
招待の ID。 ListHandshakesForAccount 操作を呼び出して ID を取得できます。 |
h-Ih8IuPfvV0t0**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返された結果。 |
||
| RequestId |
string |
リクエストの ID。 |
5828C836-3286-49A6-9006-15231BB19342 |
| Handshake |
object |
招待に関する情報。 |
|
| Status |
string |
招待のステータス。有効な値は次のとおりです:
|
Accepted |
| ExpireTime |
string |
招待の有効期限が切れる時間。時間は UTC で表示されます。 |
2021-01-20T02:15:40Z |
| ResourceDirectoryId |
string |
リソースディレクトリの ID。 |
rd-3G**** |
| CreateTime |
string |
招待が作成された時間。時間は UTC で表示されます。 |
2021-01-06T02:15:40Z |
| Note |
string |
招待の説明。 |
Welcome |
| TargetEntity |
string |
招待された Alibaba Cloud アカウントの ID またはログインメールアドレス。 |
177242285274**** |
| MasterAccountId |
string |
リソースディレクトリの管理アカウントの ID。 |
151266687691**** |
| MasterAccountName |
string |
リソースディレクトリの管理アカウントの名前。 |
CompanyA |
| ModifyTime |
string |
招待が変更された時間。時間は UTC で表示されます。 |
2021-01-06T02:16:40Z |
| TargetType |
string |
招待された Alibaba Cloud アカウントのタイプ。有効な値は次のとおりです:
|
Account |
| HandshakeId |
string |
招待の ID。 |
h-Ih8IuPfvV0t0**** |
例
成功レスポンス
JSONJSON
{
"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": "Welcome\n",
"TargetEntity": "177242285274****",
"MasterAccountId": "151266687691****",
"MasterAccountName": "CompanyA",
"ModifyTime": "2021-01-06T02:16:40Z",
"TargetType": "Account",
"HandshakeId": "h-Ih8IuPfvV0t0****"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。