調(diào)用DeleteAccount刪除資源類型的成員。
接口說明
刪除成員前,建議您先調(diào)用 CheckAccountDelete 和 GetAccountDeletionCheckResult ,對成員進(jìn)行刪除前的條件檢查。只有符合刪除條件的成員,才能調(diào)用 DeleteAccount 成功將其刪除。
成功提交成員刪除申請后,您可以通過 GetAccountDeletionStatus 查詢刪除狀態(tài)。且成員一旦刪除,成員中的所有資源及數(shù)據(jù)都會被刪除,您無法再次登錄和使用它,將無法找回,請您謹(jǐn)慎操作。關(guān)于成員刪除的更多信息,請參見刪除資源賬號類型的成員。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AccountId | string | 是 | 待刪除的成員 ID。 | 169946124551**** |
AbandonableCheckId | array | 否 | 可以選擇放棄并繼續(xù)執(zhí)行成員刪除的檢查項(xiàng) ID。 該 ID 從 GetAccountDeletionCheckResult 的返回參數(shù) AbandonableChecks 中獲取。 | |
string | 否 | 可以選擇放棄并繼續(xù)執(zhí)行成員刪除的檢查項(xiàng) ID。 該 ID 從 GetAccountDeletionCheckResult 的返回參數(shù) AbandonableChecks 中獲取。 | NON_SP_cs |
返回參數(shù)
示例
正常返回示例
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. | 成員不存在,請先創(chuàng)建成員。 |
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 當(dāng)前賬號未啟用資源目錄,請先啟用資源目錄。 |
409 | AccountTypeOrStatusMismatch | You cannot perform the action on the member account. | 成員類型或狀態(tài)不匹配。 |
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. | 刪除失敗。賬號不存在,請確認(rèn)是否已經(jīng)刪除。 |
409 | ExistProcessingDeleteFlow.DeleteAccount | The request is invalid. The account is already in the process of deletion. Please do not repeat the operation. | 請求無效。賬號已在刪除流程中,請勿重復(fù)操作。 |
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用戶或角色進(jìn)行刪除操作。 |
409 | ExistPrepaidInstance.DeleteAccount | The deletion failed. There are prepaid products under the current account. Please release them and try again. | 刪除失敗。當(dāng)前賬號下存在預(yù)付費(fèi)產(chǎn)品,請釋放后重試刪除。 |
409 | ForbidDelete.Account | Delete is prohibited. The current account is abnormal. Please contact customer service. | 禁止刪除。當(dāng)前賬號異常,請聯(lián)系客服咨詢。 |
409 | QuotaExceeded.DeleteAccount | You have exceeded delete account quota for the past 30 days. | 刪除成員數(shù)量超出最大限額。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內(nèi)容概要 | 操作 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2024-06-06 | OpenAPI 錯誤碼發(fā)生變更 | 看變更集 | ||||||||
|