Skip to main content

FixCheckWarnings

Description

call FixCheckWarnings repair baseline check risk item.

Request Method

POST

Request Path

/apsara/route/Sas/FixCheckWarnings

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
RiskIdBODYlongYes12the baseline ID of the risk item to be repaired.
CheckParamsBODYstringYes[{"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.
SourceIpBODYstringNo1.2.3.4access the IP address of the source.
regionIdBODYstringYesNo sample value for this parameter.region id
LangBODYstringNozhthe language type of the request and receive message. Value: zh: Chinese en: English
UuidsBODYstringYesuuid-abcd-1234,uuid-abcd-2345UUID list of servers involved in risk items to be repaired.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0the unique identifier generated by alibaba cloud for this request.
BatchIdlong52370the 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
}

}