BatchCreateWafRules_边缘安全加速_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为30/1(s)。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
SiteIdinteger<int64>

站点 ID,可通过调用 ListSites 接口获取。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:1参考取值来源:
    ListSites
    CreateSite
SiteVersioninteger<int32>

站点版本。

示例值:0
Phasestring

WAF 规则类型,取值:展开详情

示例值:http_anti_scan参考取值来源:
    ListWafPhases
RulesetIdinteger<int64>

规则集 ID。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:10000001参考取值来源:
    GetWafRuleset
    CreateWafRuleset

WAF 批量规则共享。

Configsarray<WafRuleConfig>

各规则配置列表,指定每个规则的详细配置。

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:36af3fcc-43d0-441c-86b1-428951dc8225
RulesetIdinteger<int64>

WAF 规则集的 ID,可通过调用 ListWafRulesets 接口获取。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:10000001
Idsarray<integer<int64>>

WAF 规则的 ID,可通过调用 ListWafRules 接口获取。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter
The specified parameter is invalid.诊断
400
InternalException
Failed to call the service. Try again later or contact technical support.诊断
400
SpecifiedVersionReadOnly
The specified version number is read-only and cannot be modified.诊断
403
%s.NotSupport
The specified resource type %s is not supported.诊断
403
%s.OverQuota
The quantity of %s exceeds the quota.诊断
403
%s.WrongValueMatched
The value of specified parameter %s can not pass the matching check.诊断
403
Rule.Config.Malformed
The format of the rule configuration is invalid.Check the configuration for syntax errors or structural inconsistencies and correct them to meet the requirements.诊断
403
Rule.Config.Noncompliance
The specified rule configuration does not meet the compliance requirements.Check and adjust your configurations.诊断
403
Ruleset.Name.AlreadyExists
The specified rule set name already exists.Try again with a unique name or modify the existing rule set name.诊断
403
Site.NotExist
The specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system.诊断
403
Expression.Invalid
The specified expression is invalid: %s.诊断
403
Ruleset.NotExist
The specified rule set does not exist or has not been registered in the system.Check whether the specified rule set identifier is valid and matches a rule set that has been correctly defined and maintained by the system's rule set registry.If you want to add a new rule set, make sure that the creation and registration process is complete to bring the rule set into effect.诊断

变更历史

变更时间变更内容概要操作
2025-04-17
变更请求参数SiteId
2025-03-27
新增OpenAPI,批量创建WAF规则
2024-09-25
变更错误码400
删除错误码500
2024-09-18
变更错误码403
变更错误码500

相关示例