调用DeleteAccount删除资源类型的成员。
接口说明
删除成员前,建议您先调用 CheckAccountDelete 和 GetAccountDeletionCheckResult ,对成员进行删除前的条件检查。只有符合删除条件的成员,才能调用 DeleteAccount 成功将其删除。
成功提交成员删除申请后,您可以通过 GetAccountDeletionStatus 查询删除状态。且成员一旦删除,成员中的所有资源及数据都会被删除,您无法再次登录和使用它,将无法找回,请您谨慎操作。关于成员删除的更多信息,请参见删除资源账号类型的成员。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AccountId | string | 是 | 待删除的成员 ID。 | 169946124551**** |
AbandonableCheckId | array | 否 | 可以选择放弃并继续执行成员删除的检查项 ID。 该 ID 从 GetAccountDeletionCheckResult 的返回参数 AbandonableChecks 中获取。 | |
string | 否 | 可以选择放弃并继续执行成员删除的检查项 ID。 该 ID 从 GetAccountDeletionCheckResult 的返回参数 AbandonableChecks 中获取。 | NON_SP_cs |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "009429F8-C1C0-5872-B674-A6C2333B9647",
"DeletionType": "0"
}
错误码
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 | 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. | 请使用管理账号的RAM用户或角色进行删除操作。 |
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 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||
|