招待を承諾します。
操作説明
招待された Alibaba Cloud アカウントがリソースディレクトリに参加すると、そのアカウントはリソースディレクトリのメンバーになります。デフォルトでは、招待された Alibaba Cloud アカウントの名前が、リソースディレクトリ内での表示名として使用されます。
このトピックでは、Alibaba Cloud アカウント 177242285274**** をリソースディレクトリ rd-3G**** に招待するための招待 h-Ih8IuPfvV0t0**** を承諾する API オペレーションの呼び出し例を示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcemanager:AcceptHandshake |
update |
*Handshake
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| HandshakeId |
string |
必須 |
招待の ID です。 ID を取得するには、ListHandshakesForAccount オペレーションを呼び出してください。 |
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 |
招待に対するコメントです。 |
欢迎您加入 |
| 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": "欢迎您加入",
"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. | The specified resource directory does not exist. You must specify a valid resource directory. |
| 409 | HandshakeStatusMismatch | The invitation is invalid. | 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. | The specified AccountType is invalid. |
| 409 | NotSupport.Account.RealNameType | Your account is not a real-name of enterprise type, so you cannot accept the invitation. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。