Queries the details of a custom WAF rule group by page.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dcdn:DescribeDcdnWafGroup | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Language | string | Yes | The language of the response. Valid values:
| zh |
Id | long | Yes | The ID of the WAF rule group. You can query the ID by calling the DescribeDcdnWafGroups operation. | 1012 |
Scope | string | Yes | The range of the rule group to be queried.
| in |
QueryArgs | string | No | The query conditions. The value is a JSON string in the following format:
Note
If you do not specify this parameter, all protection rules are queried.
| {\"RiskLevel\":\"\",\"ProtectionType\":\"\",\"ApplicationType\":\"\",\"RuleIdLike\":\"\"} |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Id": 1012,
"Name": "test",
"TemplateId": 1012,
"Subscribe": "on",
"TotalCount": 16,
"Rules": [
{
"GmtModified": "2021-12-29T17:08:45Z",
"Id": 100001,
"Name": "test",
"Description": "OK",
"RiskLevel": 2,
"ProtectionType": 11,
"ApplicationType": 1,
"CveId": "CVE-2021-22945",
"CveUrl": "https://nxx.nxxx.gov/vuln/detail/CVE-2022-XXXX"
}
],
"PageNumber": 1,
"PageSize": 20
}
Error codes
For a list of error codes, visit the Service error codes.