敏感信息规则 详情
更新时间:2026-03-10
GET
/v1/waf/desensitizeRules/detail
敏感信息规则 详情
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Query 参数
ruleKey
string
必选
请求结构
GET /v1/waf/desensitizeRules/detail?ruleKey= HTTP/1.1
Host: example.com
示例代码
获取敏感信息规则详情
curl -X GET "/v1/waf/desensitizeRules/detail?ruleKey=example"
{
"ruleKey ": "example"
}
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
success
boolean
必选
status
integer
必选
result
object {12}
必选
显示子属性
隐藏子属性
ruleName
string
规则名称
必选
ruleID
integer
规则ID
必选
ruleKey
string
规则唯一标识
必选
ruleType
string
接入类型。saas/native
必选
protectionDomains
array
防护站点
必选
显示子属性
隐藏子属性
items
string
switch
integer
开关状态。可选值: 0, 1
必选
action
string
处置动作。可选值: log, deny, cover
必选
targets
array
匹配条件
必选
显示子属性
隐藏子属性
items
object {4}
显示子属性
隐藏子属性
key
string
匹配字段
必选
field
string
自定义字段名称
必选
match
string
匹配逻辑符
必选
value
string
匹配内容
必选
matchType
string
匹配类型。resInfo 敏感信息 resCode 响应码。可选值: resInfo, resCode
必选
matchSubType
array
匹配项。敏感信息: bank_card:银行卡 | id_card:身份证 | phone:手机号 | resKeyword:敏感关键字; 响应码:400、401、402、403、404、500、501、502、503、504、405-499、505-599
必选
显示子属性
隐藏子属性
items
string
可选值: bank_card, id_card, phone, resKeyword, 400, 401, 402, 403, 404, 500, 501, 502, 503, 504, 405-499, 505-599
matchValue
string
匹配内容
必选
updateTime
string
更新时间
必选
返回敏感信息规则详情
成功响应
{
"success": true,
"status": 200,
"result": {
"ruleName": "示例规则",
"ruleID": 123,
"ruleKey": "key-123",
"ruleType": "saas",
"protectionDomains": ["example.com"],
"switch": 1,
"updateTime": "2023-10-01T12:00:00Z",
"action": "cover",
"targets": [
{
"key": "body",
"field": "password",
"match": "contains",
"value": "123"
}
],
"matchType": "resInfo",
"matchSubType": ["phone"],
"matchValue": ""
}
}
