All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnWafPolicyValidDomains

Last Updated:Apr 11, 2024

Queries the domain names that can be bound to a custom protection policy.

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

Request parameters

ParameterTypeRequiredDescriptionExample
DefenseScenestringYes

The type of the Web Application Firewall (WAF) protection policy. Valid values:

  • waf_group: basic web protection
  • custom_acl: custom protection
  • whitelist: IP address whitelist
  • ip_blacklist: IP address blacklist
  • region_block: region blacklist
  • bot: bot management
custom_acl
DomainNameLikestringNo

The protected domain name. Fuzzy search is supported.

example.com
PageNumberintegerNo

The page number of the returned page. 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.

3C6CCEC4-6B88-4D4A-93E4-D47B3D92C630
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 information about the protected domain names.

PolicyNamestring

The name of the protection policy.

test1
PolicyIdlong

The ID of the protection policy.

1000001
DomainNamestring

The protected domain name.

example.com
PolicyTypestring

Indicates whether the protection policy is the default policy. Valid values:

  • default: The protection policy is the default policy.
  • custom: The protection policy is not the default policy.
default
Policiesobject []

The policy that is bound to the domain name.

Idlong

The ID of the rule.

10000002
Namestring

The name of the policy.

test2
Typestring

The type of the policy.

custom

Examples

Sample success responses

JSONformat

{
  "PageSize": 20,
  "RequestId": "3C6CCEC4-6B88-4D4A-93E4-D47B3D92C630",
  "PageNumber": 1,
  "TotalCount": 2,
  "Domains": [
    {
      "PolicyName": "test1",
      "PolicyId": 1000001,
      "DomainName": "example.com",
      "PolicyType": "default",
      "Policies": [
        {
          "Id": 10000002,
          "Name": "test2",
          "Type": "custom"
        }
      ]
    }
  ]
}

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.