ListWafPhases - 列举WAF运行阶段

更新时间: 2024-12-26 16:54:55

列举指定站点的WAF运行阶段及其关联的规则集信息。

调试

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

授权信息

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

请求参数

名称类型必填描述示例值
SiteIdlong

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

1
SiteVersioninteger

站点版本。

0

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

36af3fcc-43d0-441c-86b1-428951dc8225
Phasesarray<object>

WAF 运行阶段列表。

phaseobject

WAF 运行阶段详情。

Phasestring

WAF 运行阶段名称。

http_custom
Rulesetsarray<object>

WAF 规则集列表。

rulesetobject

WAF 规则集详情。

Idlong

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

10000001
Namestring

WAF 规则集名称。

example
SharedWafBatchRuleShared

WAF 规则集中规则所共享的配置。

Rulesarray

WAF 规则集中的规则配置列表。

ruleWafRuleConfig

WAF 规则集中的规则配置。

示例

正常返回示例

JSON格式

{
  "RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
  "Phases": [
    {
      "Phase": "http_custom",
      "Rulesets": [
        {
          "Id": 10000001,
          "Name": "example",
          "Shared": {
            "Target": "",
            "Mode": "",
            "CrossSiteId": 0,
            "Name": "",
            "Match": {
              "Logic": "",
              "Criteria": [
                {
                  "Logic": "",
                  "Criteria": [
                    {
                      "Logic": "",
                      "Criteria": [
                        {
                          "MatchType": "",
                          "MatchOperator": "",
                          "MatchValue": "",
                          "Negate": true,
                          "ConvertToLower": true
                        }
                      ],
                      "MatchType": "",
                      "MatchOperator": "",
                      "MatchValue": "",
                      "Negate": true,
                      "ConvertToLower": true
                    }
                  ],
                  "MatchType": "",
                  "MatchOperator": "",
                  "MatchValue": "",
                  "Negate": true,
                  "ConvertToLower": true
                }
              ],
              "MatchType": "",
              "MatchOperator": "",
              "MatchValue": "",
              "Negate": true,
              "ConvertToLower": true
            },
            "Action": "",
            "Actions": {
              "Response": {
                "Id": 0,
                "Code": 0
              }
            },
            "Expression": ""
          },
          "Rules": [
            {
              "Id": 20000001,
              "Name": "example",
              "Status": "on",
              "Type": "http_custom",
              "Match": {
                "Logic": "",
                "Criteria": [
                  {
                    "Logic": "",
                    "Criteria": [
                      {
                        "Logic": "",
                        "Criteria": [],
                        "MatchType": "",
                        "MatchOperator": "",
                        "MatchValue": "",
                        "Negate": true,
                        "ConvertToLower": true
                      }
                    ],
                    "MatchType": "",
                    "MatchOperator": "",
                    "MatchValue": "",
                    "Negate": true,
                    "ConvertToLower": true
                  }
                ],
                "MatchType": "",
                "MatchOperator": "",
                "MatchValue": "",
                "Negate": true,
                "ConvertToLower": true
              },
              "Action": "deny",
              "Actions": {
                "Response": {
                  "Id": 50000001,
                  "Code": 403
                },
                "Bypass": {
                  "Skip": "part",
                  "Tags": [
                    "http_custom"
                  ],
                  "RegularTypes": [
                    "sqli"
                  ],
                  "RegularRules": [
                    100001
                  ],
                  "CustomRules": [
                    20000001
                  ]
                }
              },
              "ManagedGroupId": 30000001,
              "RateLimit": {
                "Characteristics": {
                  "Logic": "",
                  "Criteria": [
                    {
                      "Logic": "",
                      "Criteria": [
                        {
                          "Logic": "",
                          "Criteria": [
                            {
                              "MatchType": "",
                              "MatchOperator": "",
                              "MatchValue": "",
                              "Negate": true,
                              "ConvertToLower": true
                            }
                          ],
                          "MatchType": "",
                          "MatchOperator": "",
                          "MatchValue": "",
                          "Negate": true,
                          "ConvertToLower": true
                        }
                      ],
                      "MatchType": "",
                      "MatchOperator": "",
                      "MatchValue": "",
                      "Negate": true,
                      "ConvertToLower": true
                    }
                  ],
                  "MatchType": "",
                  "MatchOperator": "",
                  "MatchValue": "",
                  "Negate": true,
                  "ConvertToLower": true
                },
                "Threshold": {
                  "Request": 10,
                  "Traffic": "10Gb",
                  "ManagedRulesBlocked": 10,
                  "DistinctManagedRules": 10,
                  "ResponseStatus": {
                    "Code": 404,
                    "Count": 10,
                    "Ratio": 10
                  }
                },
                "Interval": 10,
                "TTL": 10,
                "OnHit": true
              },
              "ManagedList": "intelligence_crawler",
              "Timer": {
                "Scopes": "",
                "Zone": 0,
                "Periods": [
                  {
                    "Start": "",
                    "End": ""
                  }
                ],
                "WeeklyPeriods": [
                  {
                    "Days": "",
                    "DailyPeriods": [
                      {
                        "Start": "",
                        "End": ""
                      }
                    ]
                  }
                ]
              },
              "Sigchl": [
                "sig"
              ],
              "AppSdk": {
                "FeatureAbnormal": [
                  "wxbb_invalid_sign"
                ],
                "CustomSignStatus": "on",
                "CustomSign": {
                  "Key": "sign",
                  "Value": "examplesignvalue"
                }
              },
              "AppPackage": {
                "PackageSigns": [
                  {
                    "Name": "name",
                    "Sign": "sign"
                  }
                ]
              },
              "Expression": "ip.src eq 10.0.0.1",
              "ManagedRulesets": [
                {
                  "AttackType": 11,
                  "NumberTotal": 100,
                  "NumberEnabled": 50,
                  "ProtectionLevel": 4,
                  "Action": "deny",
                  "ManagedRules": [
                    {
                      "Id": 100001,
                      "Status": "on",
                      "Action": "deny"
                    }
                  ]
                }
              ],
              "Value": "10.0.0.1",
              "Notes": "example notes"
            }
          ]
        }
      ]
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterThe specified parameter is invalid.输入参数规范校验失败。
400InternalExceptionFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。

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

变更历史

变更时间变更内容概要操作
2024-09-25OpenAPI 错误码发生变更查看变更详情
2024-09-18OpenAPI 错误码发生变更查看变更详情
上一篇: WAF 下一篇: ListWafTemplateRules - 列举WAF模板规则