Fixes risk items detected in the baseline check.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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.

  • checkId: the ID of the check item.
  • rules: the rules applied to fixes in the array format.
    • value: specifies whether a fix method is selected. Valid values: 0 and 1. The value of 0 indicates a fix method is not selected and the value of 1 indicates a fix method is selected.
    • ruleId: the ID of the fix method.
    • paramList: the list of fix methods in the array format.

      paramName: the name of the fix method.

      value: the value of the fix method.

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

The source IP address of the request.

Lang String No zh

The natural language of the request and response. Valid values:

  • zh: Chinese
  • en: English

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.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "BatchId": 52370,
    "requestId": "76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0"

Error codes

For a list of error codes, visit the API Error Center.