Lists mitigation policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-antiddosbag:ListPolicy |
list |
*Policy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The policy name. |
test** |
| Type |
string |
No |
The type of the policy. Valid values:
|
l3 |
| PageNo |
integer |
No |
The page number for a paged query. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. The default value is 10. |
10 |
| ProductType |
string |
No |
The type of the product to which the policy applies. Valid values:
Note
This parameter takes effect only when Type is set to |
ecs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
B4B379C2-9319-4C6B-B579-FE36831B09F4 |
| PolicyList |
array<object> |
The list of policies. |
|
|
array<object> |
The list of policies. |
||
| Id |
string |
The policy ID. |
877afbdf-3982-4d36-9886-f043******** |
| Name |
string |
The policy name. |
test** |
| Type |
string |
The type of the policy. Valid values:
|
l3 |
| Remark |
string |
The remarks of the policy. |
test |
| AttachedCount |
integer |
The number of protected objects associated with the policy. |
0 |
| Content |
object |
The content of the policy. |
|
| BlackIpListExpireAt |
integer |
The timeout period for the IP address blacklist. This value is a UNIX timestamp. |
1716878000 |
| EnableIntelligence |
boolean |
Indicates whether AI-powered protection is enabled. |
true |
| IntelligenceLevel |
string |
The protection level of AI-powered protection. Valid values:
|
default |
| WhitenGfbrNets |
boolean |
Indicates whether to add the origin URLs of Anti-DDoS Pro & Premium (the Chinese mainland & outside the Chinese mainland) to the whitelist. |
false |
| EnableDropIcmp |
boolean |
Indicates whether the ICMP protocol is disabled. |
false |
| RegionBlockCountryList |
array |
The list of countries in the Location Blacklist. |
|
|
integer |
The country code for the Location Blacklist. |
11 |
|
| RegionBlockProvinceList |
array |
The list of provinces in the Location Blacklist. |
|
|
integer |
The province code for the Location Blacklist. |
2 |
|
| SourceLimit |
object |
The Source Rate Limiting settings. |
|
| Pps |
integer |
The source PPS limit. Unit: packets/s. |
64 |
| Bps |
integer |
The source bandwidth limit. Unit: bytes/s. |
2048 |
| SynPps |
integer |
The source SYN PPS limit. Unit: packets/s. |
64 |
| SynBps |
integer |
The source SYN bandwidth limit. Unit: bytes/s. |
2048 |
| SourceBlockList |
array<object> |
The list of source IP addresses to be added to the blacklist for rate limiting. |
|
|
object |
The list of source IP addresses to be added to the blacklist for rate limiting. |
||
| Type |
integer |
The type of source rate limiting. Valid values:
|
3 |
| BlockExpireSeconds |
integer |
The duration for which a source IP address is added to the blacklist. Unit: seconds. |
120 |
| EverySeconds |
integer |
The statistical period for adding a source IP address to the blacklist for rate limiting. Unit: seconds. |
60 |
| ExceedLimitTimes |
integer |
The number of times a source IP address exceeds the rate limit within a statistical period. |
5 |
| ReflectBlockUdpPortList |
array |
The list of ports to be filtered for reflection attack prevention. |
|
|
integer |
The port to be filtered for reflection attack prevention. |
123 |
|
| PortRuleList |
array<object> |
The list of Port Blocking rules. |
|
|
object |
The list of Port Blocking rules. |
||
| Id |
string |
The rule ID. |
8f3c3062-6c20-425d-8405-2bd1******** |
| Protocol |
string |
The protocol type. Valid values:
|
udp |
| SrcPortStart |
integer |
The start of the source port range. Valid values: 0 to 65535. |
0 |
| SrcPortEnd |
integer |
The end of the source port range. Valid values: 0 to 65535. |
65535 |
| DstPortStart |
integer |
The start of the destination port range. Valid values: 0 to 65535. |
0 |
| DstPortEnd |
integer |
The end of the destination port range. Valid values: 0 to 65535. |
65535 |
| MatchAction |
string |
The action to take upon a match. Valid values:
|
drop |
| SeqNo |
integer |
The priority of the rule. The value is an integer. |
1 |
| FingerPrintRuleList |
array<object> |
A list of rules for byte-match filtering. |
|
|
object |
The list of Byte-Match Filter rules. |
||
| Id |
string |
The rule ID. |
2c0b09cd-a565-4481-9acb-418b******** |
| Protocol |
string |
The protocol type. Valid values:
|
udp |
| SrcPortStart |
integer |
The start of the source port range. Valid values: 0 to 65535. |
0 |
| SrcPortEnd |
integer |
The end of the source port range. Valid values: 0 to 65535. |
65535 |
| DstPortStart |
integer |
The start of the destination port range. Valid values: 0 to 65535. |
0 |
| DstPortEnd |
integer |
The end of the destination port range. Valid values: 0 to 65535. |
65535 |
| MinPktLen |
integer |
The minimum packet length. Valid values: 1 to 1500. |
1 |
| MaxPktLen |
integer |
The maximum packet length. Valid values: 1 to 1500. |
1500 |
| Offset |
integer |
The offset. Valid values: 0 to 1500. |
0 |
| PayloadBytes |
string |
The detection payload. The value is a hexadecimal string. |
abcd |
| MatchAction |
string |
The action to take upon a match. Valid values:
|
drop |
| RateValue |
integer |
The rate limit. Valid values: 1 to 100000. Note
This parameter is required when MatchAction is set to ip_rate or session_rate. |
1000 |
| SeqNo |
integer |
The priority of the rule. The value is an integer. |
1 |
| EnableL4Defense |
boolean |
Indicates whether port-specific mitigation is enabled. |
true |
| L4RuleList |
array<object> |
The list of port-specific mitigation rules. |
|
|
array<object> |
The list of port-specific mitigation rules. |
||
| Name |
string |
The rule name. |
test** |
| Priority |
integer |
The priority of the rule. |
1 |
| Method |
string |
The rule type. Valid values:
|
char |
| Match |
string |
The logical operator. Valid values:
|
1 |
| Action |
string |
The action. Valid values:
|
2 |
| Limited |
integer |
The minimum number of bytes in a session stream to trigger rule matching. Valid values: 0 to 2048. |
0 |
| ConditionList |
array<object> |
The list of detection conditions. |
|
|
array<object> |
The list of detection conditions. |
||
| Arg |
string |
The detection content. Note
If the rule type is char, the value must be an ASCII string. If the rule type is hex, the value must be a hexadecimal string. The maximum length is 2048 characters. |
test |
| Position |
integer |
The start position for detection. Valid values: 0 to 2047. |
0 |
| Depth |
integer |
The length of the detection window. Valid values: 1 to 2048. |
32 |
| Encode |
string |
The character type. Valid values:
|
str |
| Pattern |
string |
The match pattern. Valid values:
|
contain |
| Content |
string |
The content to match.
|
test** |
| Offset |
object |
The match range. |
|
| Start |
integer |
The start position. Valid values: 0 to 1499. |
0 |
| End |
integer |
The end position. Valid values: 0 to 1499. Note
The end position must be greater than or equal to the start position. |
1499 |
| PortVersion |
string |
The version of the port-specific mitigation policy. Valid values:
Note
This parameter is supported only by port-specific mitigation policies. |
2 |
| Total |
integer |
The total number of policies. |
10 |
Examples
Success response
JSON format
{
"RequestId": "B4B379C2-9319-4C6B-B579-FE36831B09F4",
"PolicyList": [
{
"Id": "877afbdf-3982-4d36-9886-f043********",
"Name": "test**",
"Type": "l3",
"Remark": "test",
"AttachedCount": 0,
"Content": {
"BlackIpListExpireAt": 1716878000,
"EnableIntelligence": true,
"IntelligenceLevel": "default",
"WhitenGfbrNets": false,
"EnableDropIcmp": false,
"RegionBlockCountryList": [
11
],
"RegionBlockProvinceList": [
2
],
"SourceLimit": {
"Pps": 64,
"Bps": 2048,
"SynPps": 64,
"SynBps": 2048
},
"SourceBlockList": [
{
"Type": 3,
"BlockExpireSeconds": 120,
"EverySeconds": 60,
"ExceedLimitTimes": 5
}
],
"ReflectBlockUdpPortList": [
123
],
"PortRuleList": [
{
"Id": "8f3c3062-6c20-425d-8405-2bd1********",
"Protocol": "udp",
"SrcPortStart": 0,
"SrcPortEnd": 65535,
"DstPortStart": 0,
"DstPortEnd": 65535,
"MatchAction": "drop",
"SeqNo": 1
}
],
"FingerPrintRuleList": [
{
"Id": "2c0b09cd-a565-4481-9acb-418b********",
"Protocol": "udp",
"SrcPortStart": 0,
"SrcPortEnd": 65535,
"DstPortStart": 0,
"DstPortEnd": 65535,
"MinPktLen": 1,
"MaxPktLen": 1500,
"Offset": 0,
"PayloadBytes": "abcd",
"MatchAction": "drop",
"RateValue": 1000,
"SeqNo": 1
}
],
"EnableL4Defense": true,
"L4RuleList": [
{
"Name": "test**",
"Priority": 1,
"Method": "char",
"Match": "1",
"Action": "2",
"Limited": 0,
"ConditionList": [
{
"Arg": "test",
"Position": 0,
"Depth": 32,
"Encode": "str",
"Pattern": "contain",
"Content": "test**",
"Offset": {
"Start": 0,
"End": 1499
}
}
]
}
],
"PortVersion": "2"
}
}
],
"Total": 10
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.