All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnWafSpecInfo

Last Updated:Apr 11, 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

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:DescribeDcdnWafSpecInfoRead
  • All Resources
    *
    none
none

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
SpecInfosobject []

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

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
Configsobject []

The configuration information of the protection rule.

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.