CheckAccountDelete_资源目录_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.

接口说明

删除成员前,您需要调用本 API 对目标成员进行删除前的条件检查。

流控信息

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

授权信息

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

具体说明如下:展开详情

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

请求参数

字段名称字段详情
AccountIdstring

待删除的成员 ID。

示例值:179855839641****参考取值来源:
    UpdateAccount
    ListAccounts
    CreateResourceAccount

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:7CDDDCEF-CDFD-0825-B7D7-217BE0897B22

返回示例

错误码

全局错误码
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
InvalidControlPolicyEnablementStatus
The control policy enablement status is not valid to perform this operation.诊断
409
NoLicense.ResourceDirectory
The resource directory has not enabled the delete operation.诊断
409
UnknownError.Account
The deletion failed. An unknown error occurred. Please try again later.诊断
409
CallerIdentityError.DeleteAccount
Please use the RAM user or role of the management account to delete.诊断
409
RemoveConfilctAccountAsDelegatedAdministator
You attempted to remove a member that is registered as a delegated administrator. To complete this operation, you must first deregister this account as a delegated administrator.诊断
409
LegalEntityDifferent
The account legal entity is different from the one of the Management Account.诊断
409
MemberTypeError.DeleteAccount
You can only delete accounts of the resource account type created by Resource Directory.诊断

变更历史

暂无变更历史

相关示例