基础防护模板 详情
更新时间:2026-03-10
GET
/v1/waf/webTemplate/detail
基础防护模板 详情
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Query 参数
templateKey
string
必选
示例代码
基础的请求示例
请求示例
curl -X GET "https://example.com/v1/waf/webTemplate/detail?templateKey=YOUR_TEMPLATE_KEY" \
-H "Content-Type: application/json"
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
status
integer
必选
result
object {9}
必选
显示子属性
隐藏子属性
ruleName
string
必选
switch
integer
必选
protectionDomains
array
必选
显示子属性
隐藏子属性
items
string
templateType
string
必选
templateKey
string
必选
ruleID
integer
规则ID
必选
action
string
处置动作
必选
groupKey
string
规则组唯一标识。high => 高 middle => 中 low => 低 自定义 => groupKey
必选
groupName
string
规则组名称
必选
success
boolean
必选
成功的响应结构
响应示例
{
"status": 0,
"result": {
"switch": 1,
"protectionDomains": [
"example.com"
],
"templateType": "high",
"templateKey": "template_key_example",
"action": "block",
"groupKey": "high",
"ruleName": "SQL注入防护",
"ruleID": 10001,
"groupName": "高"
},
"success": true
}
