Adds IP addresses to the IP blacklist for WAF critical event protection.
Operation description
Before calling this operation, make sure that the WAF instance supports critical event protection. Critical event protection requires a separate upgrade purchase. You can call the DescribeInstance operation to query instance details. If the response parameter Details.MajorProtection is true, the instance supports critical event protection. If not, upgrade the instance to enable critical event protection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:CreateMajorProtectionBlackIp |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The WAF instance ID. |
waf_v3prepaid_public_cn-2r42s6y**** |
| TemplateId |
integer |
Yes |
The ID of the critical event protection rule template. Note
This parameter requires the ID of a protection template of the critical event protection type. You can create this type of template only after you purchase the critical event protection upgrade. For more information about how to enable critical event protection and create a critical event protection rule template, see Critical event protection. |
2221 |
| RuleId |
integer |
Yes |
The ID of the critical event protection IP blacklist rule. |
232324 |
| IpList |
string |
Yes |
The IP addresses to add to the IP blacklist. Custom IP addresses and CIDR blocks are supported. Both IPv4 and IPv6 are supported. Separate multiple IP addresses with commas (,). For more information, see Critical event protection. |
192.0.XX.XX,192.0.XX.XX/24 |
| ExpiredTime |
integer |
Yes |
The expiration timestamp, in seconds. Note
If the value is 0, the rule takes effect permanently. |
1716528465 |
| Description |
string |
No |
The description of the IP blacklist. |
Protection for major events |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
D7861F61-5B61-46CE-A47C-6B19160D**** |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19160D****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.