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 to IgnoreHcCheckWarnings.

RiskId String Yes 51

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

Note You can call the DescribeCheckWarningSummary operation to query the IDs of risk items.
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 the DescribeCheckWarnings operation to query the IDs of the alerts triggered by check items.
CheckIds String No 21313

The ID of the check item.

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

The reason for the current operation.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

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.