UpdateWafRule_边缘安全加速_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)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
esa:UpdateWafRule
Update
Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

请求参数

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

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

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

站点版本。

示例值:0
Idinteger<int64>

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

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:20000001
Positioninteger<int64>

规则在规则集中的位置顺序。

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

规则状态。

示例值:on

WAF 规则配置

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

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

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

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

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter
The specified parameter is invalid.诊断
400
Rule.NotExist
The specified rule does not exist.诊断
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
Rule.Position.Invalid
The specified position for the rule is invalid.Check and adjust the configuration to make sure it meets the requirements.诊断
403
Rule.Name.AlreadyExists
The specified rule name already exists.Try again with a unique name or modify the existing rule name.诊断
403
Expression.Invalid
The specified expression is invalid: %s.诊断

变更历史

变更时间变更内容概要操作
2025-03-27
新增OpenAPI,更新WAF规则
2024-09-25
变更错误码400
删除错误码500
2024-09-18
变更错误码403
变更错误码500

相关示例