全部产品
Search
文档中心

边缘安全加速:EditSiteWafSettings - 编辑站点的WAF配置

更新时间:Mar 24, 2026

该接口用于编辑站点的Web应用防火墙(WAF)配置。用户可以通过此接口修改站点的WAF设置,如修改WAF识别的客户端IP等。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

SiteId

integer

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

1

SiteVersion

integer

站点版本。

0

Settings WafSiteSettings

站点 WAF 配置信息,以 JSON 格式传递。

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

36af3fcc-43d0-441c-86b1-428951dc8225

示例

正常返回示例

JSON格式

{
  "RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225"
}

错误码

HTTP status code

错误码

错误信息

描述

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 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. 指定的站点不存在或当前未被系统识别。请检查站点标识符是否准确,并确保它与一个已定义、当前活跃且在系统公认的站点网络中可访问的站点相匹配。如果该站点是预定新增的,请确保已完成适当的创建或注册流程,以将其整合到系统中。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情