Mengambil daftar template perlindungan dengan paginasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeDefenseTemplates |
list |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateIds |
string |
No |
ID template perlindungan yang ingin Anda kueri. Anda dapat menentukan parameter ini untuk mengkueri objek yang dilindungi yang memiliki beberapa template perlindungan yang berlaku. Pisahkan beberapa ID template dengan koma (,). |
189731,189539,189538,189531,189540,189542,189541 |
| TemplateName |
string |
No |
Nama template perlindungan yang akan dikueri. |
test |
| InstanceId |
string |
Yes |
ID Instans WAF. Catatan
Anda dapat memanggil operasi DescribeInstance untuk mengkueri ID Instans WAF. |
waf_v3prepaid_public_cn-pe33b****03 |
| TemplateId |
integer |
No |
ID template perlindungan. |
39395 |
| TemplateType |
string |
No |
Tipe template perlindungan yang ingin Anda buat. Nilai valid:
|
user_default |
| DefenseScene |
string |
No |
Skenario perlindungan. Untuk informasi lebih lanjut, lihat deskripsi parameter DefenseScene di topik CreateDefenseRule. |
region_block |
| Resource |
string |
No |
Nama objek yang dilindungi atau kelompok objek yang dilindungi, atau ID aset yang dilindungi. Catatan
Anda harus menentukan parameter Resource dan ResourceType untuk memfilter hasil kueri. |
ruiqiu.cc-ecs |
| ResourceType |
string |
No |
Tipe Sumber daya yang dilindungi. Nilai valid:
Catatan
Anda harus menentukan parameter Resource dan ResourceType untuk memfilter hasil kueri. |
single |
| DefenseSubScene |
string |
No |
Sub-skenario template perlindungan. Nilai valid:
|
basic |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Nilai default: 20. |
10 |
| RegionId |
string |
No |
Wilayah tempat Instans WAF berada. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmvyknl****fa |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
4F26D2F1-E288-5104-8518-05E240E337A4 |
| TotalCount |
integer |
The total number of protection templates returned. |
100 |
| Templates |
array<object> |
An array of protection templates. |
|
|
object |
A protection template. |
||
| DefenseScene |
string |
The protection scenario. Valid values:
|
whitelist |
| GmtModified |
integer |
The last modification time of the protection template. This value is a UNIX timestamp in milliseconds. |
1683776070000 |
| TemplateId |
integer |
The ID of the protection template. |
56477 |
| TemplateName |
string |
The name of the protection template. |
template-blockarea1 |
| TemplateOrigin |
string |
The origin of the protection template to be created. The value is custom, which indicates a user-defined template. |
custom |
| TemplateStatus |
integer |
The status of the protection template. Valid values:
|
1 |
| TemplateType |
string |
The type of the protection template. Valid values:
|
user_custom |
| DefenseSubScene |
string |
The sub-scenario for the Bot Management template. This parameter is returned only when
|
basic |
| Description |
string |
The description of the template. |
testTemplate |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4F26D2F1-E288-5104-8518-05E240E337A4",
"TotalCount": 100,
"Templates": [
{
"DefenseScene": "whitelist",
"GmtModified": 1683776070000,
"TemplateId": 56477,
"TemplateName": "template-blockarea1",
"TemplateOrigin": "custom",
"TemplateStatus": 1,
"TemplateType": "user_custom",
"DefenseSubScene": "basic",
"Description": "testTemplate"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.