刪除指定帳號組內的規則。刪除規則後,其配置資訊不再保留。
介面說明
本文將提供一個樣本,刪除帳號組ca-a4e5626622af0079****內的規則cr-4e3d626622af0080****。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:DeleteAggregateConfigRules |
delete |
*AggregateConfigRule
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ConfigRuleIds |
string |
是 |
規則 ID。多個規則 ID 之間用半形逗號(,)分隔。 關於如何擷取規則 ID,請參見 ListAggregateConfigRules 。 |
cr-4e3d626622af0080**** |
| AggregatorId |
string |
是 |
帳號組 ID。 關於如何擷取帳號組 ID,請參見 ListAggregators 。 |
ca-a4e5626622af0079**** |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無 |
||
| RequestId |
string |
請求 ID。 |
6EC7AED1-172F-42AE-9C12-295BC2ADB751 |
| OperateRuleResult |
object |
刪除規則的操作結果。 |
|
| OperateRuleItemList |
array<object> |
刪除規則的巨集指令清單。 |
|
|
object |
無 |
||
| ErrorCode |
string |
錯誤碼。
|
ConfigRuleCanNotDelete |
| Success |
boolean |
操作是否成功。取值:
|
false |
| ConfigRuleId |
string |
規則 ID。 |
cr-4e3d626622af0080**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "6EC7AED1-172F-42AE-9C12-295BC2ADB751",
"OperateRuleResult": {
"OperateRuleItemList": [
{
"ErrorCode": "ConfigRuleCanNotDelete",
"Success": false,
"ConfigRuleId": "cr-4e3d626622af0080****"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | ConfigRuleCanNotDelete | The config rule cannot be deleted. | |
| 400 | Invalid.ConfigRuleIds.SizeExceed | The maximum number of ConfigRuleIds cannot exceed 20. | |
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | |
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。