All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafPolicyDomains

Last Updated:Oct 17, 2024

Queries the accelerated domain names that are protected by a specified Web Application Firewall (WAF) protection policy.

Operation description

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

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
PolicyIdlongYes

The ID of the protection policy. You can specify only one ID in each request.

100001
PageNumberintegerNo

The number of the page to return. Valid values: 1 to 100000. Default value: 1.

1
PageSizeintegerNo

The number of domain names to return on each page. Valid values: an integer from 1 to 500. Default value: 20.

20

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of domain names returned per page, which is the same as the PageSize parameter in request parameters.

20
RequestIdstring

The ID of the request.

153ca2cd-3c01-44be-b480-64dbc6c88630
PageNumberinteger

The page number of the returned page, which is the same as the PageNumber parameter in request parameters.

1
TotalCountinteger

The total number of domain names returned.

2
Domainsarray<object>

The accelerated domain names.

DomainItemobject
DomainNamestring

The accelerated domain name that is protected by the specified protection policy.

example.com

Examples

Sample success responses

JSONformat

{
  "PageSize": 20,
  "RequestId": "153ca2cd-3c01-44be-b480-64dbc6c88630",
  "PageNumber": 1,
  "TotalCount": 2,
  "Domains": [
    {
      "DomainName": "example.com"
    }
  ]
}

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.