查询防护策略。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-antiddosbag:ListPolicy |
list |
*Policy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
否 |
策略名称。 |
test** |
| Type |
string |
否 |
策略类型。取值:
|
l3 |
| PageNo |
integer |
否 |
分页查询时,设置当前页面的页码。 |
1 |
| PageSize |
integer |
否 |
分页查询时每页的行数。默认值为 10。 |
10 |
| ProductType |
string |
否 |
适用产品类型。取值:
说明
仅对策略类型为 |
ecs |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
B4B379C2-9319-4C6B-B579-FE36831B09F4 |
| PolicyList |
array<object> |
策略列表。 |
|
|
array<object> |
策略列表。 |
||
| Id |
string |
策略 ID。 |
877afbdf-3982-4d36-9886-f043******** |
| Name |
string |
策略名称。 |
test** |
| Type |
string |
策略类型。取值:
|
l3 |
| Remark |
string |
策略备注。 |
test |
| AttachedCount |
integer |
策略关联的防护对象数量。 |
0 |
| Content |
object |
策略内容。 |
|
| BlackIpListExpireAt |
integer |
IP 黑名单超时时间(unix 时间戳)。 |
1716878000 |
| EnableIntelligence |
boolean |
是否开启 AI 智能防护。 |
true |
| IntelligenceLevel |
string |
AI 智能防护的防护等级。取值:
|
default |
| WhitenGfbrNets |
boolean |
是否开启 DDoS 高防(中国内地&非中国内地)回源地址加白。 |
false |
| EnableDropIcmp |
boolean |
是否禁用 ICMP 协议。 |
false |
| RegionBlockCountryList |
array |
区域封禁的国家列表。 |
|
|
integer |
区域封禁的国家代号。 |
11 |
|
| RegionBlockProvinceList |
array |
区域封禁的省份列表。 |
|
|
integer |
区域封禁的省份代号。 |
2 |
|
| SourceLimit |
object |
源限速。 |
|
| Pps |
integer |
源 PPS 限速,单位 Packet/s。 |
64 |
| Bps |
integer |
源带宽限速,单位 Byte/s。 |
2048 |
| SynPps |
integer |
源 SYN PPS 限速,单位 Packet/s。 |
64 |
| SynBps |
integer |
源 SYN 带宽限速,单位 Byte/s。 |
2048 |
| SourceBlockList |
array<object> |
源限速拉黑列表。 |
|
|
object |
源限速拉黑列表。 |
||
| Type |
integer |
源限速类型。取值:
|
3 |
| BlockExpireSeconds |
integer |
源 IP 加入黑名单的时长。单位秒。 |
120 |
| EverySeconds |
integer |
源限速拉黑的统计周期,单位秒。 |
60 |
| ExceedLimitTimes |
integer |
源 IP 在 1 个统计周期内超过限速值的次数。 |
5 |
| ReflectBlockUdpPortList |
array |
反射攻击防护过滤的端口列表。 |
|
|
integer |
反射攻击防护过滤的端口 |
123 |
|
| PortRuleList |
array<object> |
端口封禁规则列表。 |
|
|
object |
端口封禁规则列表。 |
||
| Id |
string |
规则 ID。 |
8f3c3062-6c20-425d-8405-2bd1******** |
| Protocol |
string |
协议类型,取值:
|
udp |
| SrcPortStart |
integer |
源端口范围的起始值。取值范围:0~65535。 |
0 |
| SrcPortEnd |
integer |
源端口范围的结束值。取值范围:0~65535。 |
65535 |
| DstPortStart |
integer |
目的端口范围的起始值。取值范围:0~65535。 |
0 |
| DstPortEnd |
integer |
目的端口范围的结束值。取值范围:0~65535。 |
65535 |
| MatchAction |
string |
匹配动作。取值:
|
drop |
| SeqNo |
integer |
生效顺序号,使用整数表示。 |
1 |
| FingerPrintRuleList |
array<object> |
指纹过滤规则列表。 |
|
|
object |
指纹过滤规则列表。 |
||
| Id |
string |
规则 ID。 |
2c0b09cd-a565-4481-9acb-418b******** |
| Protocol |
string |
协议类型,取值:
|
udp |
| SrcPortStart |
integer |
源端口范围的开始值。取值范围:0~65535。 |
0 |
| SrcPortEnd |
integer |
源端口范围的结束值。取值范围:0~65535。 |
65535 |
| DstPortStart |
integer |
目的端口范围的起始值。取值范围:0~65535。 |
0 |
| DstPortEnd |
integer |
目的端口范围的结束值。取值范围:0~65535。 |
65535 |
| MinPktLen |
integer |
最小包长,取值范围:1~1500。 |
1 |
| MaxPktLen |
integer |
最大包长,取值范围:1~1500。 |
1500 |
| Offset |
integer |
偏移量,取值范围:0~1500。 |
0 |
| PayloadBytes |
string |
检测载荷。使用十六进制字符串格式表示。 |
abcd |
| MatchAction |
string |
匹配动作。取值:
|
drop |
| RateValue |
integer |
限速值。取值范围:1~100000。 说明
匹配后动作为源 IP 限速或者源 Session 限速时(匹配动作为ip_rate或session_rate),必须填写该参数。 |
1000 |
| SeqNo |
integer |
生效顺序号,使用整数表示。 |
1 |
| EnableL4Defense |
boolean |
是否开启端口防护。 |
true |
| L4RuleList |
array<object> |
端口防护规则列表。 |
|
|
array<object> |
端口防护规则列表。 |
||
| Name |
string |
规则名称。 |
test** |
| Priority |
integer |
规则优先级。 |
1 |
| Method |
string |
规则类型。取值:
|
char |
| Match |
string |
逻辑符。取值:
|
1 |
| Action |
string |
动作。取值:
|
2 |
| Limited |
integer |
会话流启动规则匹配的最小字节数,取值范围:0~2048 |
0 |
| ConditionList |
array<object> |
检测条件列表。 |
|
|
array<object> |
检测条件列表。 |
||
| Arg |
string |
检测内容。 说明
规则类型为 char,必须为 ACSII 字符串;规则类型为 hex,必须为十六进制字符串。最大长度 2048。 |
test |
| Position |
integer |
检测起始位置,取值范围:0~2047。 |
0 |
| Depth |
integer |
检测窗口长度,取值范围:1~2048。 |
32 |
| Encode |
string |
字符类型。取值:
|
str |
| Pattern |
string |
匹配模式。取值:
|
contain |
| Content |
string |
匹配内容。
|
test** |
| Offset |
object |
匹配区间。 |
|
| Start |
integer |
开始位置,取值范围:0~1499。 |
0 |
| End |
integer |
结束位置,取值范围:0~1499。 说明
需要满足 结束位置 >= 开始位置。 |
1499 |
| PortVersion |
string |
端口防护策略版本,取值:
说明
仅端口防护策略支持。 |
2 |
| Total |
integer |
策略总数。 |
10 |
示例
正常返回示例
JSON格式
{
"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
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。