メンバーアカウントの削除可否を確認します。
操作説明
メンバーアカウントを削除する前に、本 API オペレーションを呼び出して、対象のアカウントが削除可能かどうかを事前に確認する必要があります。
このトピックでは、ID が 179855839641**** のメンバーアカウントについて、削除可否を確認する API オペレーションの呼び出し例を示します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcemanager:CheckAccountDelete |
get |
*Account
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AccountId |
string |
必須 |
削除対象のメンバーアカウントの ID です。 |
179855839641**** |
共通リクエストパラメーターの詳細については、「共通パラメーター」をご参照ください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID です。 |
7CDDDCEF-CDFD-0825-B7D7-217BE0897B22 |
例
成功レスポンス
JSONJSON
{
"RequestId": "7CDDDCEF-CDFD-0825-B7D7-217BE0897B22"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.AccountId | You must specify AccountId. | |
| 400 | InvalidParameter.AccountId | The AccountId is invalid. | 指定された Alibaba Cloud アカウント ID は無効です。 アカウント ID は 16 桁の英数字です。 |
| 404 | EntityNotExists.Account | This resource directory account does not exist. | 指定されたメンバーアカウントは存在しません。 まずメンバーアカウントを作成してください。 |
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. |
| 409 | AccountTypeOrStatusMismatch | You cannot perform the action on the member account. | You cannot perform the action on the member account. |
| 409 | InvalidControlPolicyEnablementStatus | The control policy enablement status is not valid to perform this operation. | |
| 409 | NoLicense.ResourceDirectory | The resource directory has not enabled the delete operation. | |
| 409 | UnknownError.Account | The deletion failed. An unknown error occurred. Please try again later. | |
| 409 | CallerIdentityError.DeleteAccount | Please use the RAM user or role of the management account to delete. | |
| 409 | RemoveConfilctAccountAsDelegatedAdministator | You attempted to remove a member that is registered as a delegated administrator. To complete this operation, you must first deregister this account as a delegated administrator. | |
| 409 | LegalEntityDifferent | The account legal entity is different from the one of the Management Account. | |
| 409 | MemberTypeError.DeleteAccount | You can only delete accounts of the resource account type created by Resource Directory. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。