使用须知 了解以下内容可以帮助您更好地使用API操作WAF服务: 签名认证 幂等性 时间与日期 排版约定 签名认证 WAF API会对每个访问的请求进行身份认证,以保障用户的安全。安全认证采用Access Key与请求签名机制。Access Key由Access Key ID和Secret Access Key组成,均为字符串,由百度智能云官方颁发给用户。
可选值: base, black_ip, web_tamper_protection, data_loss_prevention, bot, custom, rate_limit, region_block , items :{ type : string }}, ignoreIds :{ type : array , description : 跳过检测规则ID , items :{ type :
白名单规则 保存 { headInfo : , debugUrl :{ url : /v1/waf/whiteRules/save , href : http://iapi.baidu-int.com/web/project/358141/apis/api-4813555-run , method : POST }, debugDesc : 白名单规则 保存 , authInfo : , requestCode
可选值: 0(关), 1(开) 必选 web_sdk string Web SDK集成方式。可选值: manual(手动), auto(自动) 必选 bind_info array 绑定信息。
webTemplate/delete 基础防护模板 删除 请求参数 Headers 参数 除公共头域外,无其它特殊头域 Query 参数 templateKey string 必选 示例代码 删除基础防护模板的基本调用 请求示例 复制 curl -X DELETE https://example.com/v1/waf/webTemplate/delete?
黑名单规则 列表 { headInfo : , debugUrl :{ url : /v1/waf/blackRules/list , href : http://iapi.baidu-int.com/web/project/358141/apis/api-4814172-run , method : POST }, debugDesc : 黑名单规则 列表 , authInfo : , requestCode
type : string , description : Web SDK集成方式。
基础防护模板 开关 { headInfo : , debugUrl :{ url : https://api.example.com/v1/waf/webTemplate/switch , href : , method : POST }, debugDesc : 基础防护模板 开关 , authInfo : , requestCode : {\n \ templateKey\ : \ 模板标识
基础防护模板 保存 { headInfo : , debugUrl :{ url : /v1/waf/webTemplate/save , href : , method : POST }, debugDesc : 基础防护模板 保存 , authInfo : , requestCode : {\n \ name\ : \ web防护规则模板名称\ ,\n \ bindInfo\ : [],\
webTemplate/detail 基础防护模板 详情 请求参数 Headers 参数 除公共头域外,无其它特殊头域 Query 参数 templateKey string 必选 示例代码 基础的请求示例 请求示例 复制 curl -X GET https://example.com/v1/waf/webTemplate/detail?