All Products
Search
Document Center

Edge Security Acceleration:DescribeDcdnWafPolicyValidDomains

最終更新日:Oct 17, 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

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
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
Domainsarray<object>

The information about the protected domain names.

DomainItemobject
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
Policiesarray<object>

The policy that is bound to the domain name.

Policyobject
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.