資來源目錄中的管理帳號或委派管理員帳號可以刪除帳號組。
介面說明
背景資訊
刪除帳號組之後,配置審計變化如下:
-
帳號組中的規則和合規包自動被刪除,且不可恢複。
-
帳號組中產生的所有合規結果自動被刪除,且不可恢複。
-
帳號組中成員的配置審計服務關聯角色被保留。
-
如果某個成員所屬的帳號組均被刪除,則該成員作為獨立的阿里雲帳號使用配置審計服務。
使用說明
本文將提供一個樣本,刪除帳號組ca-9190626622af00a9****。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:DeleteAggregators |
delete |
*Aggregator
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| AggregatorIds |
string |
是 |
帳號組 ID。多個帳號組 ID 之間用半形逗號(,)分隔。 |
ca-9190626622af00a9**** |
| ClientToken |
string |
否 |
保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。 |
AAAAAdDWBF2**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無 |
||
| RequestId |
string |
請求 ID。 |
8195B664-9565-4685-89AC-8B5F04B44B92 |
| OperateAggregatorsResult |
object |
刪除帳號組的操作結果。 |
|
| OperateAggregators |
array<object> |
帳號組資訊。 |
|
|
object |
無 |
||
| ErrorCode |
string |
錯誤碼。 說明
如果刪除帳號組成功,則錯誤碼為空白。 |
AccountNotExisted |
| Success |
boolean |
操作是否成功。取值:
|
false |
| AggregatorId |
string |
帳號組 ID。 |
ca-dacf86d8314e00eb**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "8195B664-9565-4685-89AC-8B5F04B44B92",
"OperateAggregatorsResult": {
"OperateAggregators": [
{
"ErrorCode": "AccountNotExisted",
"Success": false,
"AggregatorId": "ca-dacf86d8314e00eb****"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | Invalid.AggregatorIds.Empty | You must specify AggregatorIds. | |
| 400 | Invalid.AggregatorIds.SizeExceed | The maximum number of AggregatorIds is 5. | |
| 403 | AggregatorMemberNoPermission | The aggregator member is not authorized to perform the operation. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。