All Products
Search
Document Center

Resource Management:GetAccountDeletionStatus

Last Updated:Jun 05, 2024

Operation description

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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
resourcemanager:GetAccountDeletionStatusRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccountIdstringYes

The Alibaba Cloud account ID of the member.

169946124551****

Response parameters

ParameterTypeDescriptionExample
object
RdAccountDeletionStatusobject

The deletion status of the member.

Statusstring

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.
Success
AccountIdstring

The Alibaba Cloud account ID of the member.

169946124551****
CreateTimestring

The start time of the deletion.

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

The end time of the deletion.

2022-08-23T17:06:01+08:00
FailReasonListobject []

The reasons why the member fails to be deleted.

Namestring

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

Others
Descriptionstring

The description of the check item.

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

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
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
404EntityNotExists.AccountThis resource directory account does not exist.The specified member account does not exist. We recommend that you first create a member account.
409EntityNotExists.CheckAccountThere is no check task for this accountNo check task exists for the account.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-06-02The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 404
    delete Error Codes: 409
2023-03-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 404
    delete Error Codes: 409