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