检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
rule_id 是 String 规则id,根据不同的规则类型(ruletype)调用规则列表接口获取规则id,例如黑白名单(whiteblackip)规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取规则id 表2 Query参数 参数 是否必选
description 否 String 规则描述,可选参数,设置该规则的备注信息。 响应参数 状态码: 200 表5 响应Body参数 参数 参数类型 描述 id String 规则id policyid String 策略id timestamp Long 创建规则的时间,格式为13位毫秒时间戳
描述 id String 规则id policyid String 策略id hostname String 防篡改的域名 url String 防篡改的url, description String 创建规则的时间戳 status Integer 规则状态,0:关闭,1:开启 timestamp
description 否 String 规则描述,可选参数,设置该规则的备注信息。 响应参数 状态码: 200 表5 响应Body参数 参数 参数类型 描述 id String 规则id policyid String 策略id timestamp Long 创建规则的时间,格式为13位毫秒时间戳
请求示例 更新项目id为project_id,防护策略id为policy_id,规则id为rule_id的攻击惩罚规则,攻击惩罚规则的攻击惩罚规则为“long_ip_block”,拦截时间为1233秒,规则描述为”update“。 PUT https://{Endpoint}/v1/
描述 id String 规则id policyid String 策略id hostname String 防篡改的域名 url String 防篡改的url description String 创建规则的时间戳 status Integer 规则状态,0:关闭,1:开启 timestamp
String 规则id policyid String 策略id url String 规则应用的url category String 类别 contents Array of strings 内容 timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启
描述 id String 规则id policyid String 所属策略id block_time Integer 拦截时间 category String 攻击惩罚类别 description String 规则描述 timestamp Long 创建规则时间戳 状态码: 400
policyid String 该规则所属防护策略的id timestamp Long 创建规则的时间戳 description String 该规则备注 status Integer 规则状态,0:关闭,1:开启 hostname String 防篡改的域名 url String 防篡改的url
参数类型 描述 total Integer 攻击惩罚规则数量 items Array of PunishmentInfo objects 攻击惩罚规则列表 表5 PunishmentInfo 参数 参数类型 描述 id String 规则id policyid String 所属策略id
防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id rule_id 是 String 地理位置控制防护规则id,规则id从查询地理位置控制防护规则列表(ListGeoipRule)接口获取,响应体的id字段 表2 Query参数 参数 是否必选 参数类型 描述 e
更新项目id为project_id,防护策略id为policy_id,规则id为rule_id的的JS脚本反爬虫规则,规则名称为“test66”,JS脚本反爬虫规则类型为排除防护路径,匹配条为url包含“/test66”,执行该规则的优先级为50。 PUT https://{Endpoint
更新JS脚本反爬虫规则防护模式 功能介绍 更新JS脚本反爬虫规则防护模式,在创建JS脚本反爬虫规则前,需要调用该接口指定JS脚本反爬虫规则防护模式。 调用方法 请参见如何调用API。 URI PUT /v1/{project_id}/waf/policy/{policy_id}/anticrawler
修改项目id为project_id和防护策略id为policy_id的规则id为rule_id的精准防护策略规则。修改规则的名称为test55,精准防护规则命中后防护动作为拦截,执行该规则的优先级为50,匹配条件为header中发现demo2字段包含“demo“,精准防护规则生效时间为立即生效。 PUT http
String 规则id policyid String 策略id url String 规则应用的url category String 类别 contents Array of strings 内容 timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启
String 黑白名单规则id policyid String 策略id name String 黑白名单规则名称 timestamp Long 删除规则时间,13位毫秒时间戳 description String 描述 status Integer 规则状态,0:关闭,1:开启
id String 规则id policyid String 策略id timestamp Long 创建规则的时间,格式为13位毫秒时间戳 description String 规则描述,可选参数,设置该规则的备注信息。 status Integer 规则状态,0:关闭,1:开启
请求示例 更新项目id为project_id,防护策略id为policy_id,规则id为rule_id的防篡改防护规则。防敏感信息泄露规则的规则应用的url为"/login",类别为敏感信息,规则内容为身份证号。 PUT https://{Endpoint}/v1/{proje
参数类型 描述 total Integer 规则条数 items Array of PrivacyResponseBody objects 规则详情数组 表5 PrivacyResponseBody 参数 参数类型 描述 id String 规则id policyid String 策略id
排除防护路径:anticrawler_except_url timestamp Long 创建规则时间戳 status Integer 规则状态,0:关闭,1:开启 priority Integer 执行该规则的优先级,值越小,优先级越高,值相同时,规则创建时间早,优先级越高。取值范围:0到1000。 表5 AnticrawlerCondition