AddAutoCcBlacklist
Adds IP addresses to the blacklist for an Anti-DDoS Pro instance.
Operation description
QPS limit
If you exceed the limit, your API calls are throttled, which may impact your business. To avoid throttling, call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-ddoscoo:AddAutoCcBlacklist |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Anti-DDoS Pro instance. Note
Call the DescribeInstanceIds operation to query the IDs of all Anti-DDoS Pro instances. |
ddoscoo-cn-mp91j1ao**** |
| Blacklist |
string |
Yes |
The IP addresses to add to the blacklist. This is a JSON array. Each object in the array contains the following field:
Note
You can add up to 2,000 IP addresses per request. |
[{"src":"198.51.XX.XX"},{"src":"198.52.XX.XX"}] |
| ExpireTime |
integer |
Yes |
The expiration time for the blacklist entries, in seconds. Valid values: 300 to 604800. |
300 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. You can use this ID to troubleshoot issues. |
C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E |
Examples
Success response
JSON format
{
"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.