All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafSpecInfo

Last Updated:Oct 17, 2024

Queries the version of Web Application Firewall (WAF) used in Dynamic Content Delivery Network (DCDN).

Operation description

You can call this operation up to 20 times per second per account.

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
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object
Editionstring

The version of WAF.

dcdnwaf_afterpay
RequestIdstring

The ID of the request.

7281593a-f414-42c1-b7ba-2ce65e21cc00
SpecInfosarray<object>

The supported types of protection policies and the configuration information of protection rules.

RuleInfoItemobject
DefenseScenestring

The type of the protection policy. Valid values:

  • waf_group: basic web protection
  • custom_acl: custom
  • whitelist: whitelist
  • ip_blacklist: IP address blacklist
  • region_block: region blacklist
  • bot: bot management
custom_acl
Configsarray<object>

The configuration information of the protection rule.

ConfigItemobject
Valuestring

The value of the configuration expression of the protection rule.

on
Configstring

The configuration code of the protection rule.

enable
Exprstring

The configuration expression of the protection rule.

equal

Examples

Sample success responses

JSONformat

{
  "Edition": "dcdnwaf_afterpay",
  "RequestId": "7281593a-f414-42c1-b7ba-2ce65e21cc00",
  "SpecInfos": [
    {
      "DefenseScene": "custom_acl",
      "Configs": [
        {
          "Value": "on",
          "Config": "enable",
          "Expr": "equal"
        }
      ]
    }
  ]
}

Error codes

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