FixCheckWarnings
Description
call FixCheckWarnings repair baseline check risk item.
Request Method
POST
Request Path
/apsara/route/Sas/FixCheckWarnings
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RiskId | BODY | long | Yes | 12 | the baseline ID of the risk item to be repaired. |
CheckParams | BODY | 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"}]}]}] | sets the baseline check item parameters to be repaired. The following is an explanation of the parameters: checkId: check item ID. rules: fix rules (array format). value : set whether to select the repair method. Value:0(unselected), 1(selected). ruleId : set the ID of the repair method. paramList : list of repair methods (array format). • paramName : name of repair method. • value : the specific value of the repair method. |
SourceIp | BODY | string | No | 1.2.3.4 | access the IP address of the source. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Lang | BODY | string | No | zh | the language type of the request and receive message. Value: zh: Chinese en: English |
Uuids | BODY | string | Yes | uuid-abcd-1234,uuid-abcd-2345 | UUID list of servers involved in risk items to be repaired. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0 | the unique identifier generated by alibaba cloud for this request. |
BatchId | long | 52370 | the ID of the batch repair risk item returned. |
Example
Successful Response example
{
"RequestId":"76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0",
"BatchId":"52370"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}