Mengkueri jumlah sumber daya yang dilindungi yang terkait dengan satu atau beberapa template perlindungan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeTemplateResourceCount |
list |
*全部资源
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Web Application Firewall (WAF). Catatan
Panggil operasi DescribeInstance untuk mengkueri ID instans WAF. |
waf_v3prepaid_public_cn-lbj****gx08 |
| TemplateIds |
string |
Yes |
ID template perlindungan. Pisahkan beberapa ID dengan koma (,). |
12345,12346 |
| RegionId |
string |
No |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
ID kelompok sumber daya Alibaba Cloud. |
rg-aekzwwkpn****5i |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B8064433-9781-5E86-806E-C1DD****1D95 |
| ResourceCount |
array<object> |
An array of resource count objects. Each object contains the number of protected objects, protected object groups, and protected assets that are associated with a protection template. |
|
|
object |
The resource count details for a protection template, including the number of protected objects, protected object groups, and protected assets. |
||
| SingleCount |
integer |
The number of protected objects that are associated with the protection template. |
30 |
| GroupCount |
integer |
The number of protected object groups that are associated with the protection template. |
30 |
| TemplateId |
integer |
The ID of the protection template. |
12345 |
| AssetCount |
integer |
The number of protected assets that are associated with the protection template. |
10 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B8064433-9781-5E86-806E-C1DD****1D95",
"ResourceCount": [
{
"SingleCount": 30,
"GroupCount": 30,
"TemplateId": 12345,
"AssetCount": 10
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.