Adds IP addresses to the blacklist of an Anti-DDoS Pro or Anti-DDoS Premium instance.


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 AddAutoCcBlacklist

The operation that you want to perform. Set the value to AddAutoCcBlacklist.

Blacklist String Yes [{"src":""},{"src":""}]

The IP addresses that you want to manage. This parameter is a JSON string. The field in the value is described as follows:

  • src: the IP address. This field is required and must be of the STRING type.
ExpireTime Integer Yes 300

The validity period of the IP address in the blacklist. Valid values: 300 to 7200. Unit: seconds.

InstanceId String Yes ddoscoo-cn-mp91j1ao****

The ID of the instance.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"

Error codes

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