調用CheckAccountDelete執行成員刪除檢查任務。
接口說明
刪除成員前,您需要調用本 API 對目標成員進行刪除前的條件檢查。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AccountId | string | 是 | 待刪除的成員 ID。 | 179855839641**** |
返回參數
示例
正常返回示例
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. | - |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史
后續操作
您可以調用 GetAccountDeletionCheckResult 查詢刪除檢查的結果。