Call DescribeDcdnWafPolicyValidDomains to query the domain names that can be attached to custom mitigation policies.
Operation description
A user can make up to 20 calls per second.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dcdn:DescribeDcdnWafPolicyValidDomains | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
DefenseScene | string | Yes | The type of the WAF mitigation policy. The following scenarios are supported:
| custom_acl |
DomainNameLike | string | No | The protected DCDN domain name. Fuzzy queries are supported. | example.com |
PageNumber | integer | No | The page number. Valid values: 1 to 100000. Default value: 1. | 1 |
PageSize | integer | No | The number of domain names to display on each page. Default value: 20. Valid values: an integer from 1 to 500. | 20 |
Response elements
Element | Type | Description | Example |
object | |||
PageSize | integer | The number of domain names displayed on each page. This is the same as the PageSize in the request. | 20 |
RequestId | string | The request ID. | 3C6CCEC4-6B88-4D4A-93E4-D47B3D92C630 |
PageNumber | integer | The page number. This is the same as the PageNumber in the request. | 1 |
TotalCount | integer | The total number of domain names found. | 2 |
| Domains | array<object> | The list of protected domain names. | |
object | |||
PolicyName | string | The name of the mitigation policy. | test1 |
PolicyId | integer | The ID of the mitigation policy. | 1000001 |
DomainName | string | The protected domain name. | example.com |
PolicyType | string | Indicates whether this is the default mitigation policy. Valid values:
| default |
| Policies | array<object> | The policies attached to the domain name. | |
object | |||
Id | integer | The policy ID. | 10000002 |
Name | string | The policy name. | test2 |
Type | string | The policy type. | custom |
Examples
Success response
JSON format
{
"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 code | Error code | Error message | Description |
400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.