全部产品
Search
文档中心

边缘安全加速:DescribeHttpDDoSAttackRules - 查询HTTP DDoS攻击防护规则

更新时间:Jan 19, 2026

查询HTTP DDoS攻击防护规则。

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

SiteId

integer

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

123456****

PageNumber

integer

当前页码。默认值;1,取值范围:1~65535

1

PageSize

integer

分页大小。

10

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

D4030CD2-0D9D-5E92-B358-421AE58307C6

TotalCount

integer

总条数。

100

PageNumber

integer

当前页码。

1

PageSize

integer

分页大小。

10

RuleInfos

array<object>

规则信息列表。

object

RuleName

string

规则名称。

Illegal request。

RuleIdInfo

string

规则简称。

global_01_s

RuleDesc

string

规则描述。

The HTTP request's Accept header contains invalid features#1

Status

string

规则状态,取值如下:

  • on:开启规则。

  • off:关闭规则。

on

DefaultAction

string

默认执行动作。

deny

Action

string

执行动作。

deny

RuleId

integer

HTTP DDoS 规则 ID。

20203578

LogRuleId

integer

防护规则 ID(日志记录用)。

100010

示例

正常返回示例

JSON格式

{
  "RequestId": "D4030CD2-0D9D-5E92-B358-421AE58307C6",
  "TotalCount": 100,
  "PageNumber": 1,
  "PageSize": 10,
  "RuleInfos": [
    {
      "RuleName": "Illegal request。",
      "RuleIdInfo": "global_01_s",
      "RuleDesc": "The HTTP request's Accept header contains invalid features#1",
      "Status": "on",
      "DefaultAction": "deny",
      "Action": "deny",
      "RuleId": 20203578,
      "LogRuleId": 100010
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParameter.SiteId The specified SiteId is invalid. 站点ID参数非法。
400 ErrSiteIdNoteEnterprise This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. 当前站点非企业版套餐,无法使用该功能,请升级站点为企业版套餐。
500 InternalError Failed to call the service. Try again later or contact technical support. 调用服务失败,请稍后重试或联系客服咨询详情。
403 SiteIdDDoSVersionCheckFailed SiteId DDoS version check failed. 站点对应DDoS版本检查失败。

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

变更历史

更多信息,参考变更详情