Adds IP addresses to the blacklist for an Anti-DDoS Pro or Anti-DDoS Premium instance.
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 instance. Note
You can call DescribeInstanceIds to query the IDs of all Anti-DDoS instances. |
ddoscoo-cn-mp91j1ao**** |
| Blacklist |
string |
Yes |
The details of the blacklist IP addresses, represented as a JSON string with the following structure.
Note
You can manually add up to 2,000 IP addresses to the blacklist. Multiple IP addresses must be separated by spaces or line breaks. |
[{"src":"198.51.XX.XX"},{"src":"198.52.XX.XX"}] |
| ExpireTime |
integer |
Yes |
The expiration time, which can be customized. Valid values: 300 to 604800, in seconds. |
300 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request, which is generated by Alibaba Cloud for the request and can be used for troubleshooting and problem locating. |
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.