Queries the count 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 WAF instance. Note
Call DescribeInstance to query the ID of your WAF instance. |
waf_v3prepaid_public_cn-lbj****gx08 |
| TemplateIds |
string |
Yes |
The IDs of the protection templates. Separate multiple template IDs with a comma (,). |
12345,12346 |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the 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 that contains the number of protected objects, protected object groups, and protected assets for each protection template. |
|
|
object |
The protected objects, protected object groups, or protected Assets to which the protection template is applied. |
||
| SingleCount |
integer |
The number of protected objects. |
30 |
| GroupCount |
integer |
The number of protected object groups. |
30 |
| TemplateId |
integer |
The ID of the protection template. |
12345 |
| AssetCount |
integer |
The number of protected assets. |
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.