基础防护模板 列表
更新时间:2026-03-10
POST
/v1/waf/webTemplate/list
基础防护模板 列表
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Body 参数
subdomains
array
域名筛选
可选
显示子属性
隐藏子属性
items
string
pageNo
integer
必选
pageSize
integer
必选
ruleID
integer
规则ID筛选
可选
switch
integer
全部:-1 或 不传 开:1 关:0
必选
action
string
全部:空 或 不传 观察:log 拦截:deny
必选
templateName
string
模板名称
必选
请求结构
{
"subdomains": [
"string"
],
"pageNo": 0,
"pageSize": 0,
"ruleID": 0,
"switch": 0,
"action": "string",
"templateName": "string"
}
示例代码
基础防护模板列表示例
请求示例
curl -X POST "https://{host}/v1/waf/webTemplate/list" \
-H "Content-Type: application/json" \
-d '{
"pageNo": 1,
"pageSize": 10,
"switch": -1,
"action": "",
"templateName": ""
}'
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
status
integer
必选
success
boolean
必选
result
object {2}
必选
显示子属性
隐藏子属性
result
array
可选
显示子属性
隐藏子属性
items
object {8}
显示子属性
隐藏子属性
ruleName
string
必选
templateKey
string
必选
templateType
string
saas、native
必选
protectionDomains
array
防护域名数组
必选
显示子属性
隐藏子属性
items
string
action
string
处置动作
必选
switch
integer
模板开关
必选
updateTime
string
更新时间
必选
ruleID
integer
必选
totalCount
integer
可选
成功响应
响应示例
{
"status": 200,
"success": true,
"result": {
"result": [
{
"ruleName": "规则名称",
"templateKey": "模板Key",
"templateType": "saas",
"protectionDomains": [
"example.com"
],
"action": "deny",
"switch": 1,
"updateTime": "2023-01-01 00:00:00",
"ruleID": 123
}
],
"totalCount": 1
}
}
