You can call this operation to fix risky items detected in 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 toFixCheckWarnings.

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"}]}]}]

Set the parameters for the risky check item to be fixed. Descriptions of the parameters are as follows:

  • checkId: the ID of the check item.
  • rules: the rules applied to fixes, in the array format.
    • value: specifies whether to select the fix method. Valid values:0: do not select.1: select.
    • ruleId: specifies 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 baseline ID of the risky check item to be fixed.

Uuids String Yes uuid-abcd-1234,uuid-abcd-2345

The UUID list of the servers that are involved in the risky check item.

SourceIp String No

The source IP address of the request.

Lang String No zh

The 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 returned risky check items that have been fixed.

RequestId String 76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=FixCheckWarnings
&<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.