CheckAccountDelete - 成员删除检查

更新时间:
复制 MD 格式

调用CheckAccountDelete执行成员删除检查任务。

接口说明

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

调用方必须使用资源目录管理账号的 RAM 用户或 RAM 角色,不能使用管理账号根用户。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

resourcemanager:CheckAccountDelete

get

*Account

acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}

无 无

请求参数

名称

类型

必填

描述

示例值

AccountId

string

是

待删除的成员 ID。

179855839641****

返回参数

名称

类型

描述

示例值

object

返回结果。

RequestId

string

请求 ID。

7CDDDCEF-CDFD-0825-B7D7-217BE0897B22

示例

正常返回示例

JSON格式

{
  "RequestId": "7CDDDCEF-CDFD-0825-B7D7-217BE0897B22"
}

错误码

HTTP status code

错误码

错误信息

描述

400 MissingParameter.AccountId You must specify AccountId. AccountId不能为空。
400 InvalidParameter.AccountId The AccountId is invalid. 成员ID无效,请输入16位账号ID。
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. 请使用管理账号的RAM用户或角色进行删除操作。
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.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。