Memanggil DescribeDcdnWafPolicyValidDomains untuk mengkueri nama domain yang dapat dilampirkan ke kebijakan mitigasi kustom.
Deskripsi operasi
A user can make up to 20 calls per second.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnWafPolicyValidDomains |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DefenseScene |
string |
Yes |
Tipe kebijakan mitigasi WAF. Skenario berikut didukung:
|
custom_acl |
| DomainNameLike |
string |
No |
Nama domain DCDN yang dilindungi. Kueri fuzzy didukung. |
example.com |
| PageNumber |
integer |
No |
Nomor halaman. Nilai valid: 1 hingga 100000. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah nama domain yang ditampilkan di setiap halaman. Nilai default: 20. Nilai valid: bilangan bulat dari 1 hingga 500. |
20 |
Elemen respons
|
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. |
|
|
array<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 |
Contoh
Respons sukses
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"
}
]
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.