All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafDomainDetail

Last Updated:Oct 17, 2024

Queries the information about the protection policy of a domain name.

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
DomainNamestringYes

The accelerated domain name. You can specify only one domain name in each request. Exact match is supported.

example.com

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

153ca2cd-3c01-44be-82C0-64dbc6c88630
Domainobject

The information about the accelerated domain name.

DomainNamestring

The accelerated domain name.

example.com
DefenseScenesarray<object>

The types of the protection policies.

DefenseSceneItemobject
DefenseScenestring

The type of the protection policy. Valid values:

  • waf_group: basic web protection
  • custom_acl: custom protection
  • whitelist: whitelist
waf_group
PolicyIdlong

The ID of the protection policy.

10000002
PolicyIdsstring

The IDs of the protection policy.

10000001,10000004

Examples

Sample success responses

JSONformat

{
  "RequestId": "153ca2cd-3c01-44be-82C0-64dbc6c88630",
  "Domain": {
    "DomainName": "example.com",
    "DefenseScenes": [
      {
        "DefenseScene": "waf_group",
        "PolicyId": 10000002,
        "PolicyIds": "10000001,10000004"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.A parameter is set to an invalid value.

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