检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
状态码: 200 请求成功 { "block_time" : 1233, "category" : "long_ip_block", "description" : "demo", "id" : "2c3afdcc982b429da4f72ee483aece3e",
PolicyId = "{policy_id}" whiteblackipOptions:= false optionsbody := &model.PolicyOption{ Whiteblackip: &whiteblackipOptions, } request.Body = &model
字段类型。可选值为:url、user-agent、ip、params、cookie、referer、header、request_line、method、reqeust index String 子字段: 字段类型为url、user-agent、ip、refer、request_line、
代表域名使用新的cname is_dual_az String 是否支持双AZ模式 true:支持 false:不支持 ipv6 String 域名是否开启ipv6 true:支持 false:不支持 状态码: 400 表7 响应Body参数 参数 参数类型 描述 error_code
代表域名使用新的cname is_dual_az String 是否支持双AZ模式 true:支持 false:不支持 ipv6 String 域名是否开启ipv6 true:支持 false:不支持 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code
规则id,根据不同的规则类型(ruletype)调用规则列表接口获取规则id,例如黑白名单(whiteblackip)规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取规则id 表2 Query参数 参数 是否必选 参数类型 描述 enterprise_project_id
字段类型。可选值为:url、user-agent、ip、params、cookie、referer、header、request_line、method、reqeust index String 子字段: 字段类型为url、user-agent、ip、refer、request_line、
字段类型。可选值为:url、user-agent、ip、params、cookie、referer、header、request_line、method、reqeust index String 子字段: 字段类型为url、user-agent、ip、refer、request_line、
Webshell检测是否开启 cc Boolean cc规则是否开启 custom Boolean 精准防护是否开启 whiteblackip Boolean 黑白名单防护是否开启 geoip Boolean 地理位置访问控制规则是否开启 ignore Boolean 误报屏蔽是否开启 privacy Boolean
是否必选 参数类型 描述 protect_status 是 Integer 域名防护状态: -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 1:开启防护,WAF根据您配置的策略进行攻击检测 响应参数 状态码:
strings 内容 timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启 description String 规则描述 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码
policyid String 策略id hostname String 防篡改的域名 url String 防篡改的url, description String 创建规则的时间戳 status Integer 规则状态,0:关闭,1:开启 timestamp Long 创建规则的时间,格式为13位毫秒时间戳
响应Body参数 参数 参数类型 描述 id String 引用表id name String 引用表名称 type String 引用表类型 description String 引用表描述 values Array of strings 引用表的值 producer Integer 引用表来源:
strings 规则内容 timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启 description String 规则描述 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码
String 规则id policyid String 该规则所属防护策略的id timestamp Long 创建规则的时间戳 description String 该规则备注 status Integer 规则状态,0:关闭,1:开启 hostname String 防篡改的域名
strings 内容 timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启 description String 规则描述 状态码: 400 表5 响应Body参数 参数 参数类型 描述 error_code String 错误码
String 规则id policyid String 策略id timestamp Long 创建规则的时间,格式为13位毫秒时间戳 description String 规则描述,可选参数,设置该规则的备注信息。 status Integer 规则状态,0:关闭,1:开启 url String
规则id policyid String 策略id hostname String 防篡改的域名 url String 防篡改的url description String 创建规则的时间戳 status Integer 规则状态,0:关闭,1:开启 timestamp Long 创建规则时间戳
String 规则id policyid String 策略id timestamp Long 创建规则的时间,格式为13位毫秒时间戳 description String 规则描述,可选参数,设置该规则的备注信息。 status Integer 规则状态,0:关闭,1:开启 url String
Header:自定义HTTP首部 Form:表单参数 index String 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。 description String 规则描述,可选参数,设置该规则的备注信息。 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code