Fixes risk items detected in the baseline check.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | FixCheckWarnings |
The operation that you want to perform. Set the value to FixCheckWarnings. |
CheckParams | String | Yes | [{"checkId":8,"rules":[{"ruleId":"rule.ssh_Idle.interval","value":1,"paramList":[{"paramName":"range_val","value":"600"},{"paramName":"range_val","value":"600"}]},{"ruleId":"rule.ssh_Idle.count","value":1,"paramList":[{"paramName":"range_val","value":"3"}]}]}] |
The parameters for the risk item that you want to fix.
|
RiskId | Long | Yes | 12 |
The ID of the risk item that you want to fix. |
Uuids | String | Yes | uuid-abcd-1234,uuid-abcd-2345 |
The UUID list of servers that have risk items. |
SourceIp | String | No | 1.2.3.4 |
The source IP address of the request. |
Lang | String | No | zh |
The natural language of the request and response. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
BatchId | Long | 52370 |
The IDs of the risk items that have been fixed. |
RequestId | String | 76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=FixCheckWarnings
&CheckParams=[{"checkId":8,"rules":[{"ruleId":"rule.ssh_Idle.interval","value":1,"paramList":[{"paramName":"range_val","value":"600"},{"paramName":"range_val","value":"600"}]},{"ruleId":"rule.ssh_Idle.count","value":1,"paramList":[{"paramName":"range_val","value":"3"}]}]}]
&RiskId=12
&Uuids=uuid-abcd-1234,uuid-abcd-2345
&<Common request parameters>
Sample success responses
XML
format
<FixCheckWarningsResponse>
<BatchId>52370</BatchId>
<requestId>76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0</requestId>
</FixCheckWarningsResponse>
JSON
format
{
"BatchId": 52370,
"requestId": "76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0"
}
Error codes
For a list of error codes, visit the API Error Center.