All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafDefaultRules

Last Updated:Feb 11, 2025

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dcdn:DescribeDcdnWafDefaultRulesget
*All Resources
*
    none
none

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.