Queries the deletion status of a member.

Usage notes

This topic provides an example on how to call the API operation to query the deletion status of the member whose Alibaba Cloud account ID is 169946124551****. The response shows that the member is deleted.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetAccountDeletionStatus

The operation that you want to perform. Set the value to GetAccountDeletionStatus.

AccountId String Yes 169946124551****

The Alibaba Cloud account ID of the member.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RdAccountDeletionStatus Object

The deletion status of the member.

Status String Success

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 for the member fails.
  • DeleteFailed: The member fails to be deleted.
AccountId String 169946124551****

The Alibaba Cloud account ID of the member.

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

The start time of the deletion.

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

The end time of the deletion.

FailReasonList Array of failReasonList

The reasons why the member fails to be deleted.

Name String Others

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

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

The description of the check item.

DeletionType String 0

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?
RequestId String 8AA43293-7C8F-5730-8F2D-7F864EC092C5

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=GetAccountDeletionStatus
&AccountId=169946124551****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAccountDeletionStatusResponse>
    <RequestId>8AA43293-7C8F-5730-8F2D-7F864EC092C5</RequestId>
    <RdAccountDeletionStatus>
        <Status>Success</Status>
        <AccountId>169946124551****</AccountId>
        <DeletionType>0</DeletionType>
        <CreateTime>2022-08-23T17:05:30+08:00</CreateTime>
        <DeletionTime>2022-08-23T17:06:01+08:00</DeletionTime>
    </RdAccountDeletionStatus>
</GetAccountDeletionStatusResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "8AA43293-7C8F-5730-8F2D-7F864EC092C5",
  "RdAccountDeletionStatus" : {
    "Status" : "Success",
    "AccountId" : "169946124551****",
    "FailReasonList" : [ ],
    "DeletionType" : 0,
    "CreateTime" : "2022-08-23T17:05:30+08:00",
    "DeletionTime" : "2022-08-23T17:06:01+08:00"
  }
}

Error codes

HTTP status code Error code Error message Description
404 EntityNotExists.Account This resource directory account does not exist. The error message returned because the member does not exist. Create such a member first.
409 EntityNotExists.CheckAccount There is no check task for this account The error message returned because no deletion check is performed for the current account.

For a list of error codes, see Service error codes.