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