すべてのプロダクト
Search
ドキュメントセンター

Resource Management:CheckAccountDelete

最終更新日:Mar 31, 2026

メンバーアカウントの削除可否を確認します。

操作説明

メンバーアカウントを削除する前に、本 API オペレーションを呼び出して、対象のアカウントが削除可能かどうかを事前に確認する必要があります。

このトピックでは、ID が 179855839641**** のメンバーアカウントについて、削除可否を確認する API オペレーションの呼び出し例を示します。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

resourcemanager:CheckAccountDelete

get

*Account

acs:resourcemanager:*:{#accountId}:account/{#ResourceDirectoryPath}

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

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.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。