{"base_path":"/","components":null,"consumes":"","definitions":{"BatchUpdateBotMRuleActionRequestBody":{"description":"**参数解释:**\n批量更新规则防护动作的请求体,用于统一修改多条BotM规则的防护动作\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","properties":{"defense_action":{"description":"**参数解释:**\n批量更新的防护动作对应的数字,101-拦截、102-放行、103-观察、104-验证码、201-重定向、202-返回自定义页面、301-拉黑IP\n**约束限制:**\n不涉及\n**取值范围:**\n- 101:拦截\n- 102:放行\n- 103:观察\n- 104:验证码\n- 201:重定向\n- 202:返回自定义页面\n- 301:拉黑IP\n**默认取值:**\n不涉及","enum":[101,102,103,104,201,202,301],"format":"int32","type":"integer"},"rule_ids":{"description":"**参数解释:**\n批量更新的规则ID,包含需要修改防护动作的多条BotM规则ID\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","example":["a","b"],"items":{"type":"string"},"type":"array"}},"type":"object"},"BotMUpdateRuleResponse":{"description":"**参数解释:**\n更新BotM规则时的响应体\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","properties":{"result":{"description":"**参数解释:**\n结果\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","type":"boolean"}},"type":"object"},"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"}},"description":null,"group_id":"29975c0bd7ce463ca70ad5c074e3974b","host":"waf.cn-north-4.myhuaweicloud.com","id":"09c2d91992764fe2afb8313ebd2628ea","info_version":"v1","method":"post","name":"BatchUpdateBotMRuleAction","parameters":{},"paths":{"/v1/{project_id}/waf/policy/{policy_id}/bot-manager/rule/batch-update-action":{"post":{"consumes":["application/json"],"description":"**参数解释:**\n批量更新BotM规则防护动作\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","operationId":"BatchUpdateBotMRuleAction","parameters":[{"description":"**参数解释:**\nprojectId\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"path","name":"project_id","required":true,"type":"string"},{"description":"**参数解释:**\npolicyId\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"path","name":"policy_id","required":true,"type":"string"},{"description":"**参数解释:**\n租户token\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"default":"application/json","description":"**参数解释:**\n内容类型\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\napplication/json","in":"header","name":"Content-Type","required":true,"type":"string"},{"description":"**参数解释:**\n批量更新规则防护动作的请求体\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","in":"body","name":"BatchUpdateBotMRuleActionRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchUpdateBotMRuleActionRequestBody"}}],"produces":["application/json"],"responses":{"200":{"description":"**参数解释:**\n请求成功\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","examples":{"application/json":{"result":true}},"schema":{"$ref":"#/definitions/BotMUpdateRuleResponse"}},"400":{"description":"**参数解释:**\n请求失败\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","schema":{"$ref":"#/definitions/RestErrorResponse"}},"401":{"description":"**参数解释:**\ntoken权限不足\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","schema":{"$ref":"#/definitions/RestErrorResponse"}},"500":{"description":"**参数解释:**\n服务器内部错误\n**约束限制:**\n不涉及\n**取值范围:**\n不涉及\n**默认取值:**\n不涉及","schema":{"$ref":"#/definitions/RestErrorResponse"}}},"summary":"批量更新BotM规则防护动作","tags":["策略规则管理"],"x-api-type":"open-api","x-apidesigner":83,"x-is-registered":"Y","x-order":83,"x-request-examples-1":{"defense_action":101,"rule_ids":[0]},"x-request-examples-text-1":{"defense_action":101,"rule_ids":[0]},"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"}