You can call DescribeDcdnWafGroups to query a list of custom Web Application Firewall (WAF) rule groups.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:DescribeDcdnWafGroups |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Language |
string |
No |
The language of the response. Valid values:
|
zh |
| QueryArgs |
string |
No |
The query conditions in a JSON-serialized string. The format is as follows:
Note
If you do not set this parameter, all mitigation rules are queried. |
{"RuleIds":"100001,200002"} |
| PageNumber |
integer |
No |
The page number. The default value is 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. The default value is 20. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The ID of the request. |
||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| TotalCount |
integer |
The total number of WAF rule groups. |
16 |
| WafGroups |
array<object> |
The list of WAF rule groups. |
|
|
object |
|||
| GmtModified |
string |
The time when the rule group was last modified. |
2020-04-12 22:25:11 |
| Id |
integer |
The ID of the custom WAF rule group. |
30000156 |
| Name |
string |
The name of the WAF rule group. |
DCDN-test-operation-reports-1 |
| RuleCount |
integer |
The number of rules in the group. |
452 |
| TemplateId |
integer |
The template ID. |
1012 |
| Subscribe |
string |
Indicates whether subscription is enabled. Valid values:
|
on |
| Policies |
array<object> |
The policies to which the WAF rule group is attached. |
|
|
object |
|||
| Id |
integer |
The policy ID. |
30000165 |
| Name |
string |
The policy name. |
wasm-testmaster |
| Type |
string |
The type of the policy. Valid values:
|
default |
| PageNumber |
integer |
The page number. The default value is 1. |
1 |
| PageSize |
integer |
The number of entries per page. The default value is 20. |
20 |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"TotalCount": 16,
"WafGroups": [
{
"GmtModified": "2020-04-12 22:25:11",
"Id": 30000156,
"Name": "DCDN-test-operation-reports-1",
"RuleCount": 452,
"TemplateId": 1012,
"Subscribe": "on",
"Policies": [
{
"Id": 30000165,
"Name": "wasm-testmaster",
"Type": "default"
}
]
}
],
"PageNumber": 1,
"PageSize": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.