Queries the number of protected resources for which a protection template takes effect.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the Web Application Firewall (WAF) instance. Note
You can call the DescribeInstance operation to query the ID of the WAF instance.
| waf_v3prepaid_public_cn-lbj****gx08 |
TemplateIds | string | Yes | The IDs of the protection templates that you want to query. Separate multiple template IDs with commas (,). | 12345,12346 |
ResourceManagerResourceGroupId | string | No | The ID of the Alibaba Cloud resource group. | rg-aekzwwkpn****5i |
RegionId | string | No | The region in which the WAF instance is deployed. Valid values:
| cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "B8064433-9781-5E86-806E-C1DD****1D95",
"ResourceCount": [
{
"TemplateId": 12345,
"SingleCount": 30,
"GroupCount": 30
}
]
}
Error codes
For a list of error codes, visit the Service error codes.