Adds multiple risk items to a whitelist or removes them from a whitelist at a time during baseline checks.

Debugging

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 IgnoreHcCheckWarnings

The operation that you want to perform.

Set the value toIgnoreHcCheckWarnings.

RiskId String Yes 51

The ID of the risk item for which you want to add to a whitelist or remove from a whitelist.

Note You can call the DescribeCheckWarningSummaryoperation operation to query the ID.
Type Long Yes 1

The type of the operation that you want to perform. Valid values:

  • 1: adds a risk item to a whitelist.
  • 2: removes a risk item from a whitelist.
SourceIp String No 1.2.3.4

The source IP address of the request.

CheckWarningIds String No 98146905,98146907

The ID of the alert triggered by the check item. Separate multiple IDs with commas (,).

Note You can call theDescribeCheckWarnings operation to query the IDs.
CheckIds String No 21313

The ID of the check item.

Note You can call the DescribeCheckWarnings operation to query the IDs.
Reason String No Added to a whitelist.

The reason for the current operation.

Response parameters

Parameter Type Example Description
RequestId String 7E0618A9-D5EF-4220-9471-C42B113119F

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=IgnoreHcCheckWarnings
&RiskId=51
&Type=1
&<Common request parameters>

Sample success responses

XML format

<IgnoreHcCheckWarningsResponse>
      <RequestId>7E0618A9-D5EF-4220-9471-C42B113119F</RequestId>
</IgnoreHcCheckWarningsResponse>

JSON format

{
  "RequestId": "7E0618A9-D5EF-4220-9471-C42B113119F"
}

Error codes

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