CreateWafRuleset_边缘安全加速_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.

流控信息

当前云产品API请求速率暂未透出。

授权信息

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

请求参数

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

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

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

站点版本。

示例值:0
Phasestring

WAF 运行阶段。

示例值:http_custom枚举值:http_whitelisthttp_customhttp_managedhttp_anti_scanhttp_ratelimithttp_bot参考取值来源:
    ListWafPhases
Namestring

规则集名称。

示例值:example

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

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

规则集 ID。

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

返回示例

错误码

全局错误码
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
Expression.Invalid
The specified expression is invalid: %s.诊断
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.诊断

变更历史

变更时间变更内容概要操作
2025-03-27
新增OpenAPI,创建WAF规则集

相关示例