All Products
Search
Document Center

Resource Management:GetAccountDeletionStatus

Last Updated:Jan 16, 2025

Queries the deletion status of a member.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:GetAccountDeletionStatusget
*Account
acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccountIdstringYes

The Alibaba Cloud account ID of the member.

169946124551****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

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
FailReasonListarray<object>

The reasons why the member fails to be deleted.

failReasonListobject

A reason 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 of 45 days. 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 member does not exist. Create such a member first.
409EntityNotExists.CheckAccountThere is no check task for this account-

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

Change history

Change timeSummary of changesOperation
No change history