恢複已忽略的某條規則對某些資源的評估結果後,繼續顯示該規則對資源的評估結果。
介面說明
前提條件
請您確保合規結果中存在已忽略的不合規資源。具體操作,請參見 IgnoreEvaluationResults 。
使用說明
本文將提供一個樣本,恢複規則cr-7e72626622af0051****對不合規資源lb-hp3a3b4ztyfm2plgm****的評估結果,該資源歸屬的地區 ID 為cn-beijing,資源類型為ACS::SLB::LoadBalancer,資源 ID 為lb-hp3a3b4ztyfm2plgm****。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:RevertEvaluationResults |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ConfigRuleId |
string |
是 |
規則 ID。 關於如何擷取規則 ID,請參見 ListConfigRules 。 |
cr-7e72626622af0051**** |
| Resources |
array<object> |
是 |
待恢複的資源清單。 |
|
|
object |
否 |
待恢複的資源清單。 |
||
| ResourceAccountId |
integer |
是 |
資源歸屬的阿里雲帳號 ID。 |
100931896542**** |
| ResourceType |
string |
是 |
資源類型。 關於如何擷取資源類型,請參見 ListDiscoveredResources 。 |
ACS::SLB::LoadBalancer |
| Region |
string |
是 |
資源歸屬的地區 ID。 關於如何擷取資源歸屬的地區 ID,請參見 ListDiscoveredResources 。 |
cn-beijing |
| ResourceId |
string |
是 |
資源 ID。 關於如何擷取資源 ID,請參見 ListDiscoveredResources 。 |
lb-hp3a3b4ztyfm2plgm**** |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
01ACCBF2-0B0B-59F2-9E84-07B38267BCA1 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "01ACCBF2-0B0B-59F2-9E84-07B38267BCA1"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。