huawei-cloud-api-definitions-WAF 0.1.20260403

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"IAM5ErrorDetails":{"description":"调用下游服务的报错信息集合,IAM5鉴权错误时才会返回此信息0。","properties":{"error_code":{"description":"下游服务错误码","type":"string"},"error_msg":{"description":"下游服务报错信息","type":"string"}}},"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"},"SaveTrafficDetectionConditionRequestBody":{"example":{"condition":{"id":"cond-123456","logical_operator":"contain","match_contents":["/admin/login","/api/v1/sensitive",".php?debug=1"],"match_field":"url","match_field_index":"path","value_list_ref":"vl-789012"}},"properties":{"condition":{"$ref":"#/definitions/TrafficDetectionConditionDTO","description":"流量检测条件","type":"object"}},"type":"object"},"TrafficDetectionConditionDTO":{"properties":{"id":{"description":"**参数解释:**\nId,唯一标识当前流量检测条件。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":"","type":"string"},"logical_operator":{"description":"**参数解释:**\n逻辑运算符,标识匹配条件的逻辑关系(如contain表示包含)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":"contain","type":"string"},"match_contents":{"description":"**参数解释:**\n匹配内容,符合筛选条件的具体值列表(如特定URL路径)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":["aa"],"items":{"type":"string"},"type":"array"},"match_field":{"description":"**参数解释:**\n匹配字段(类别),标识流量筛选的字段类型(如url表示URL路径)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":"url","type":"string"},"match_field_index":{"description":"**参数解释:**\n子字段,匹配字段的细分维度(如无则不填)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"string"},"value_list_res":{"description":"**参数解释:**\n引用表Id,关联预设的匹配内容列表ID(如无则不填)。\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":"55454","type":"string"}},"type":"object"}},"description":null,"group_id":"29975c0bd7ce463ca70ad5c074e3974b","host":"waf.cn-north-4.myhuaweicloud.com","id":"88d802af1f404841a3e82fae111b2da6","info_version":"v1","method":"post","name":"CreateBotMTrafficDetectionCondition","parameters":{},"paths":{"/v1/{project_id}/waf/policy/{policy_id}/bot-manager/traffic-detection-condition":{"post":{"consumes":["application/json"],"description":"创建BotM流量检测条件","operationId":"CreateBotMTrafficDetectionCondition","parameters":[{"description":"project_id","in":"path","name":"project_id","required":true,"type":"string"},{"description":"policyId","in":"path","name":"policy_id","required":true,"type":"string"},{"description":"租户token","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"default":"application/json","description":"内容类型","in":"header","name":"Content-Type","required":true,"type":"string"},{"description":"您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id","in":"query","name":"enterprise_project_id","required":false,"type":"string"},{"description":"是否开启规则","in":"body","name":"createBotMTrafficDetectionConditionRequestBody","required":true,"schema":{"$ref":"#/definitions/SaveTrafficDetectionConditionRequestBody"}}],"produces":["application/json"],"responses":{"200":{"description":"请求成功","examples":{"application/json":{"id":"cond-8f7e6d5c","logical_operator":"not_contain","match_contents":["bot","crawler","spider"],"match_field":"request_header","match_field_index":"User-Agent","value_list_res":"vl-1a2b3c4d"}},"schema":{"$ref":"#/definitions/TrafficDetectionConditionDTO"}},"400":{"description":"请求失败","schema":{"$ref":"#/definitions/RestErrorResponse"}},"401":{"description":"token权限不足","schema":{"$ref":"#/definitions/RestErrorResponse"}},"500":{"description":"服务器内部错误","schema":{"$ref":"#/definitions/RestErrorResponse"}}},"summary":"创建BotM流量检测条件","tags":["策略规则管理"],"x-api-type":"open-api","x-apidesigner":88,"x-is-registered":"Y","x-order":88,"x-request-examples-1":{"enable":true},"x-request-examples-text-1":{"enable":true},"x-support-international":true,"x-support-sdk":"Y"}}},"product_short":"WAF","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建BotM流量检测条件","tags":"策略规则管理","uri":null,"version":"2.0"}