All Products
Search
Document Center

Resource Management:GetAccountDeletionStatus

Last Updated:Aug 28, 2026

Queries the deletion status of a member in a resource directory.

Operation description

In this example, the deletion status of member 169946124551**** is queried. The response shows that the member has been successfully deleted.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

resourcemanager:GetAccountDeletionStatus

get

*Account

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

None None

Request parameters

Parameter

Type

Required

Description

Example

AccountId

string

Yes

The Alibaba Cloud account ID of the member.

169946124551****

Response elements

Element

Type

Description

Example

object

The response body.

RdAccountDeletionStatus

object

The deletion status of the member.

Status

string

The status. Valid values:

  • Success: The member is deleted.

  • Checking: A deletion check is being performed for the member.

  • Deleting: The member is being deleted.

  • CheckFailed: The deletion check failed for the member.

  • DeleteFailed: The member failed to be deleted.

Success

AccountId

string

The Alibaba Cloud account ID of the member.

169946124551****

CreateTime

string

The start time of the deletion.

2022-08-23T17:05:30+08:00

DeletionTime

string

The end time of the deletion.

2022-08-23T17:06:01+08:00

FailReasonList

array<object>

The reasons why the member failed to be deleted.

object

The reasons why the member failed to be deleted.

Name

string

The name of the cloud service to which the check item belongs.

Others

Description

string

The description of the check item.

This account has a payer account. Please release the financial relationship of this account first.

DeletionType

string

The type of the deletion. Valid values:

  • 0: direct deletion. If the member does not have pay-as-you-go resources that are purchased within the previous 30 days, the system directly deletes the member.

  • 1: deletion with a silence period. If the member has pay-as-you-go resources that are purchased within the previous 30 days, the member enters a silence period. The system starts to delete the member until the silence period ends. For more information about the silence period, see What is the silence period for member deletion?

0

RequestId

string

The request ID.

8AA43293-7C8F-5730-8F2D-7F864EC092C5

Examples

Success response

JSON format

{
  "RdAccountDeletionStatus": {
    "Status": "Success",
    "AccountId": "169946124551****",
    "CreateTime": "2022-08-23T17:05:30+08:00",
    "DeletionTime": "2022-08-23T17:06:01+08:00",
    "FailReasonList": [
      {
        "Name": "Others",
        "Description": "This account has a payer account. Please release the financial relationship of this account first."
      }
    ],
    "DeletionType": "0"
  },
  "RequestId": "8AA43293-7C8F-5730-8F2D-7F864EC092C5"
}

Error codes

HTTP status code

Error code

Error message

Description

404 EntityNotExists.Account This resource directory account does not exist. The specified member account does not exist. We recommend that you first create a member account.
409 EntityNotExists.CheckAccount There is no check task for this account No check task exists for the account.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.