Queries the number of protected resources that are associated with one or more protection templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeTemplateResourceCount |
list |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Web Application Firewall (WAF) instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf_v3prepaid_public_cn-lbj****gx08 |
| TemplateIds |
string |
Yes |
The IDs of protection templates. Separate multiple IDs with commas (,). |
12345,12346 |
| RegionId |
string |
No |
The region in which the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-aekzwwkpn****5i |
Response elements
|
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 |
Examples
Success response
JSON format
{
"RequestId": "B8064433-9781-5E86-806E-C1DD****1D95",
"ResourceCount": [
{
"SingleCount": 30,
"GroupCount": 30,
"TemplateId": 12345,
"AssetCount": 10
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.