All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnWafDefaultRules

Last Updated:Apr 11, 2024

Queries the default configurations of a WAF rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:
    • The required resource types are displayed in bold characters.
    • 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:DescribeDcdnWafDefaultRulesRead
  • 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
Contentobject []

The configurations of the rule.

DefenseScenestring

The protection scenario. Valid values:

  • waf_group: basic web protection
  • anti_scan: scan protection
anti_scan
Rulesobject []

The configurations of the rule.

Typestring

The rule type. 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: monitors requests.
  • deny: denies requests.
  • block: blocks requests.
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.