{"base_path":"/","components":null,"consumes":"","definitions":{"IAM5ErrorDetails":{"description":"调用下游服务的报错信息集合,IAM5鉴权错误时才会返回此信息0。","properties":{"error_code":{"description":"下游服务错误码","type":"string"},"error_msg":{"description":"下游服务报错信息","type":"string"}}},"IpReputationRulesListInfo":{"properties":{"action":{"description":"**参数解释:**\n请求次数限制到达后采取的防护动作\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","properties":{"category":{"description":"**参数解释:**\n动作类型:\n - pass:放行\n - block:阻断。 \n - log: 仅记录 \n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","enum":["pass","block","log"],"type":"string"}},"required":["category"]},"description":{"description":"**参数解释:**\n规则描述\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"},"id":{"description":"**参数解释:**\nRule ID.\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"},"name":{"description":"**参数解释:**\n规则名称\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"},"policyid":{"description":"**参数解释:**\nPolicy ID.\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"},"status":{"description":"**参数解释:**\n规则状态,0:关闭,1:开启\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"integer"},"tags":{"description":"**参数解释:**\n信誉类型的IDC数据中心\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","items":{"type":"string"},"type":"array"},"type":{"description":"**参数解释:**\n信誉类型\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"}},"type":"object"},"ListIpReputationRulesResponsebody":{"example":{"items":[{"action":{"category":"log"},"description":"aaaaaassssdfasdgasdggggggggggggggggggdfdgfhfdgghfghhgfzvxcczdqweraaaaaassssdfasdgasdggggggggggggggggggdfdgfhfdgghfghhgfzvxcczdqw","id":"a2ea6c5197244adeb98319818dd8d8f6","name":"aaaaaassssdfasdgasdggggggggggggggggggdfdgfhfdgghfghhgfzvxcczdq11","policyid":"a28533481d5b45b09a338e7e3f6addfa","policyname":"policy_XHZaT6EM","status":1,"tags":["Dr.Peng"],"timestamp":1757661649132,"type":"idc"}],"total":22},"properties":{"items":{"description":"**参数解释:**\nArray of IpReputation rules\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","items":{"$ref":"#/definitions/IpReputationRulesListInfo"},"type":"array"},"total":{"description":"**参数解释:**\nNumber of rules in the policy\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"integer"}}},"RestErrorResponse":{"properties":{"details":{"description":"调用下游服务的报错信息集合,IAM5鉴权错误时才会返回此字段。","items":{"$ref":"#/definitions/IAM5ErrorDetails"},"type":"array"},"encoded_authorization_message":{"description":"编码 (加密) 后的详细拒绝原因,用户可以自行调用 STS 服务的decode-authorization-message接口进行解码,可参考STS5联调自验证。IAM5鉴权错误时才会返回此字段。","type":"string"},"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}},"title":"RestErrorResponse","type":"object"}},"description":null,"group_id":"29975c0bd7ce463ca70ad5c074e3974b","host":"waf.cn-north-4.myhuaweicloud.com","id":"fde0c1fa14804445b58cc21db64c571d","info_version":"v1","method":"get","name":"ListIpReputationRules","parameters":{},"paths":{"/v1/{project_id}/waf/policy/{policy_id}/ip-reputation":{"get":{"description":"查询威胁情报规则列表","operationId":"ListIpReputationRules","parameters":[{"description":"**参数解释:**\n用户Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"default":"application/json;charset=utf8","description":"**参数解释:**\n内容类型\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\napplication/json;charset=utf8","in":"header","name":"Content-Type","required":true,"type":"string"},{"description":"**参数解释:**\n项目ID,对应控制台用户名->我的凭证->项目列表->项目ID。\n**约束限制:**\n不涉及\n**取值范围:**\n只能由英文字母、数字组成,且长度为32个字符。\n**默认取值:**\n不涉及","in":"path","name":"project_id","required":true,"type":"string"},{"description":"**参数解释:**\n您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。\n**约束限制:**\n不涉及\n**取值范围:**\n - 0:代表default企业项目\n - all_granted_eps:代表所有企业项目\n - 其它企业项目ID:长度为36个字符\n**默认取值:**\n0","in":"query","name":"enterprise_project_id","required":false,"type":"string"},{"description":"**参数解释:**\n策略id(策略id从查询防护策略列表接口获取)\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"path","name":"policy_id","required":true,"type":"string"},{"description":"**参数解释:**\n偏移量,表示查询该偏移量之后的记录。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"query","name":"offset","required":true,"type":"integer"},{"description":"**参数解释:**\n查询返回记录的数量限制。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n1000","in":"query","name":"limit","required":true,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"Request succeeded.","examples":{"application/json":{"items":[{"action":{"category":"captcha"},"aging_time":0,"conditions":[{"category":"url","contents":["/url"],"logic_operation":"contain"}],"description":"","domain_aggregation":false,"id":"f88c5eabff9b4ff9ba6e7dd8e38128ba","limit_num":10,"limit_period":60,"lock_time":0,"mode":1,"name":"test","policyid":"d471eef691684f1c8d7784532fd8f4bd","producer":1,"region_aggregation":false,"status":1,"tag_type":"ip","timestamp":1678873040603,"total_num":0,"unaggregation":false}],"total":1}},"schema":{"$ref":"#/definitions/ListIpReputationRulesResponsebody"}},"400":{"description":"Request failed.","schema":{"$ref":"#/definitions/RestErrorResponse"}},"401":{"description":"The token does not have required permissions.","schema":{"$ref":"#/definitions/RestErrorResponse"}},"500":{"description":"Internal server error.","schema":{"$ref":"#/definitions/RestErrorResponse"}}},"summary":"查询威胁情报规则列表","tags":["策略规则管理"],"x-is-registered":"Y","x-order":2,"x-request-examples-description-1":"查询项目id为project_id,防护策略id为policy_id的威胁情报规则列表。","x-request-examples-url-1":"GET https://{Endpoint}/v1/{project_id}/waf/policy/{policy_id}/ip-reputation?offset=0&limit=1","x-support-international":true,"x-support-sdk":"Y"}}},"product_short":"WAF","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询威胁情报规则列表","tags":"策略规则管理","uri":null,"version":"2.0"}