All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafGroups

Last Updated:Oct 17, 2024

Queries custom Web Application Firewall (WAF) rule groups.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LanguagestringNo

The language of the response. Valid values:

  • en (default): English.
  • zh: Chinese.
zh
QueryArgsstringNo

The query conditions. The value is a string in the JSON format. Format: QueryArgs={"PolicyIds":"IDs of protection policies","RuleIds":"IDs of the protection rules","RuleNameLike":"Names of the protection rule","DomainNames":"Protected domain names","DefenseScenes":"waf_group","RuleStatus":"on","OrderBy":"GmtModified","Desc":"false"}

Note If you do not specify this parameter, all protection rules are queried.
{"RuleIds":"100001,200002"}
PageNumberintegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 20.

20

Response parameters

ParameterTypeDescriptionExample
object

The request ID.

RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE73368
TotalCountinteger

The number of WAF rule groups.

16
WafGroupsarray<object>

The list of WAF rule groups.

WafGroupItemobject
GmtModifiedstring

The time when the WAF rule group was modified.

2020-04-12 22:25:11
Idlong

The ID of the custom WAF rule group.

30000156
Namestring

The name of the WAF rule.

DCDN-test-operation-reports-1
RuleCountinteger

The number of WAF rules.

452
TemplateIdlong

The ID of the template.

1012
Subscribestring

Indicates whether to enable subscription. Valid values:

  • on
  • off
on
Policiesarray<object>

The policy that is associated with the WAF rule group.

PolicyItemobject
Idlong

The ID of the policy.

30000165
Namestring

The name of the policy.

wasm-testmaster
Typestring

The type of the policy. Valid values:

  • custom: a custom policy
  • default: the default policy
default
PageNumberinteger

The page number of the returned page. Default value: 1.

1
PageSizeinteger

The number of entries to return on each page. Default value: 20.

20

Examples

Sample success responses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "TotalCount": 16,
  "WafGroups": [
    {
      "GmtModified": "2020-04-12 22:25:11",
      "Id": 30000156,
      "Name": "DCDN-test-operation-reports-1",
      "RuleCount": 452,
      "TemplateId": 1012,
      "Subscribe": "on",
      "Policies": [
        {
          "Id": 30000165,
          "Name": "wasm-testmaster",
          "Type": "default"
        }
      ]
    }
  ],
  "PageNumber": 1,
  "PageSize": 20
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history