DeleteAccount_资源目录_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

删除成员前,建议您先调用 CheckAccountDeleteGetAccountDeletionCheckResult ,对成员进行删除前的条件检查。只有符合删除条件的成员,才能调用 DeleteAccount 成功将其删除。

成功提交成员删除申请后,您可以通过 GetAccountDeletionStatus 查询删除状态。且成员一旦删除,成员中的所有资源及数据都会被删除,您无法再次登录和使用它,将无法找回,请您谨慎操作。关于成员删除的更多信息,请参见删除资源账号类型的成员

流控信息

请求速率为20/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
resourcemanager:DeleteAccount
Delete
Account
acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}

请求参数

字段名称字段详情
AccountIdstring

待删除的成员 ID。

示例值:169946124551****参考取值来源:
    UpdateAccount
    ListAccounts
    CreateResourceAccount
AbandonableCheckIdarray<string>

可以选择放弃并继续执行成员删除的检查项 ID。展开详情

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:009429F8-C1C0-5872-B674-A6C2333B9647
DeletionTypestring

删除类型。取值:展开详情

示例值:0

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
MissingParameter.AccountId
You must specify AccountId.诊断
400
InvalidParameter.AccountId
The AccountId is invalid.诊断
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.诊断
409
AccountTypeOrStatusMismatch
You cannot perform the action on the member account.诊断
409
NoLicense.ResourceDirectory
The resource directory has not enabled the delete operation.诊断
409
UnknownError.Account
Delete failed. An unknown error occurred. Please try again later.诊断
409
AccountNotExist.DeleteAccount
The deletion failed. The account does not exist. Please confirm whether it has been deleted.诊断
409
ExistProcessingDeleteFlow.DeleteAccount
The request is invalid. The account is already in the process of deletion. Please do not repeat the operation.诊断
409
CreditControlBlock.DeleteAccount
The deletion failed. There are unsettled bills in the current account. Please settle them first and try again.诊断
409
SpBlock.DeleteAccount
The deletion failed. There is a specific product under the current account. Please clear it and try again.诊断
409
PeripheralError.DeleteAccount
The deletion failed. The deletion process is abnormal. Please try again later.诊断
409
MemberTypeError.DeleteAccount
Cloud account type members do not support deletion.诊断
409
CallerIdentityError.DeleteAccount
Please use the RAM user or role of the management account to delete.诊断
409
ExistPrepaidInstance.DeleteAccount
The deletion failed. There are prepaid products under the current account. Please release them and try again.诊断
409
ForbidDelete.Account
Delete is prohibited. The current account is abnormal. Please contact customer service.诊断
409
QuotaExceeded.DeleteAccount
You have exceeded delete account quota for the past 30 days.诊断

变更历史

变更时间变更内容概要操作
2024-06-06
变更错误码409

相关示例