All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafDefaultRules

Last Updated:Oct 17, 2024

Queries the default configurations of a WAF rule.

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
QueryArgsstringNo

The query conditions. The value is a string in the JSON format. Format: QueryArgs={"DefenseScene":"anti_scan"}

{"DefenseScene":"anti_scan"}

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

15C66C7B-671A-4297-9187-2C4477247A123425345
Contentarray<object>

The rule configurations.

Defaultobject
DefenseScenestring

The protection scenario. Valid values:

  • waf_group: basic web protection.
  • anti_scan: scan protection.
anti_scan
Rulesarray<object>

The rules.

Ruleobject
Typestring

The type of the rule. Valid values:

  • waf_group: basic web protection.
  • high_frequency: high-frequency scanning blocking.
  • directory_traversal: directory traversal blocking.
  • scan_tools: scanner blocking.
waf_group
Namestring

The default name of the rule.

Default_WafGroup_Rule
Statusstring

The default status of the rule. Valid values:

  • on
  • off
on
Configstring

The default configuration of the rule.

{\"wafGroupIds\":\"1012\"}
Actionstring

The default action of the rule. Valid values:

  • monitor
  • deny
  • block
block

Examples

Sample success responses

JSONformat

{
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A123425345",
  "Content": [
    {
      "DefenseScene": "anti_scan",
      "Rules": [
        {
          "Type": "waf_group",
          "Name": "Default_WafGroup_Rule",
          "Status": "on",
          "Config": "{\\\"wafGroupIds\\\":\\\"1012\\\"}",
          "Action": "block"
        }
      ]
    }
  ]
}

Error codes

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