All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnWafPolicyDomains

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

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

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

The accelerated domain names.

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.