Mengkueri template perlindungan yang terkait dengan objek yang dilindungi atau kelompok objek yang dilindungi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeDefenseResourceTemplates |
list |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Web Application Firewall (WAF). Catatan
Panggil DescribeInstance untuk memperoleh ID instans. |
waf_v3prepaid_public_cn-9lb36****0e |
| Resource |
string |
Yes |
Nama objek yang dilindungi atau kelompok objek yang dilindungi, atau ID aset yang dilindungi yang akan dikueri. |
mitsuichemicals.cn-waf |
| ResourceType |
string |
No |
Tipe sumber daya yang dilindungi. Nilai valid:
|
single |
| RuleType |
string |
No |
Tipe aturan perlindungan. Nilai valid:
|
whitelist |
| RuleId |
integer |
No |
ID aturan perlindungan. |
20111098 |
| RuleName |
string |
No |
Nama aturan perlindungan. |
demoRuleName |
| TemplateName |
string |
No |
Nama template perlindungan yang akan dikueri. |
test221 |
| RegionId |
string |
No |
Wilayah instans WAF. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-aek2ax2y5****pi |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2305CEB0-BA5A-5543-A1D3-3F1D08911B1C |
| Templates |
array<object> |
The protection templates. |
|
|
object |
The protection template. |
||
| Description |
string |
The description of the template. |
testTemplate |
| TemplateOrigin |
string |
The origin of the protection template. The value custom indicates a user-created template. |
custom |
| DefenseSubScene |
string |
The sub-scenario of the template. Valid values:
|
basic |
| DefenseScene |
string |
The protection scenario. For more information, see the DefenseScene parameter in CreateDefenseRule. |
whitelist |
| GmtModified |
integer |
The time when the protection template was created, in UNIX timestamp format. Unit: milliseconds. |
1692930539000 |
| TemplateName |
string |
The name of the protection template. |
antiscanTemplate |
| TemplateType |
string |
The type of the template. Valid values:
|
user_custom |
| TemplateId |
integer |
The ID of the protection template. |
34328 |
| TemplateStatus |
integer |
The status of the protection template. Valid values:
|
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2305CEB0-BA5A-5543-A1D3-3F1D08911B1C",
"Templates": [
{
"Description": "testTemplate",
"TemplateOrigin": "custom",
"DefenseSubScene": "basic",
"DefenseScene": "whitelist",
"GmtModified": 1692930539000,
"TemplateName": "antiscanTemplate",
"TemplateType": "user_custom",
"TemplateId": 34328,
"TemplateStatus": 1
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.