リソースアカウントタイプのメンバーを削除します。
操作説明
メンバーを削除する前に、CheckAccountDelete および GetAccountDeletionCheckResult を呼び出して、メンバーが削除の条件を満たしているかを確認することを推奨します。 削除条件を満たすメンバーのみ、DeleteAccount を呼び出して正常に削除できます。
メンバーの削除申請が正常に送信された後、GetAccountDeletionStatus を使用して削除ステータスを照会できます。 メンバーが削除されると、メンバー内のすべてのリソースとデータが削除され、再度ログインして使用することはできなくなり、復元もできません。操作は慎重に行ってください。 メンバーの削除に関する詳細については、「リソースアカウントタイプのメンバーの削除」をご参照ください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcemanager:DeleteAccount |
delete |
*Account
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AccountId |
string |
必須 |
削除するメンバーの Alibaba Cloud アカウント ID。 |
169946124551**** |
| AbandonableCheckId |
array |
任意 |
メンバーの削除時に無視できる確認項目の ID。 ID は GetAccountDeletionCheckResult 操作のレスポンスから取得できます。 |
|
|
string |
任意 |
メンバーの削除時に無視できる確認項目の ID。 ID は GetAccountDeletionCheckResult 操作のレスポンスから取得できます。 |
NON_SP_cs |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
009429F8-C1C0-5872-B674-A6C2333B9647 |
| DeletionType |
string |
削除のタイプ。 有効な値:
|
0 |
例
成功レスポンス
JSONJSON
{
"RequestId": "009429F8-C1C0-5872-B674-A6C2333B9647",
"DeletionType": "0"
}
エラーコード
|
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 | AccountNotExist.DeleteAccount | The deletion failed. The account does not exist. Please confirm whether it has been deleted. | |
| 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 | 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. | |
| 409 | NotSupport.HasPayerAccount | This account has a payer account. Please release the financial relationship of this account first. | |
| 409 | NotSupportedOperation.DeletingAccount | The operation is not supported because the account is being deleted. | |
| 409 | NotSupportedOperation.CheckingAccount | The operation is not supported because the account is checking for deletion. | |
| 409 | UnknownError.Account | The deletion failed. An unknown error occurred. Please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。