Queries associated protection rules by using paging.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeRelatedDefenseRules |
list |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID of the WAF instance. Note
You can call the DescribeInstance operation to query instance ID of the current WAF instance. |
waf-cn-zz11sr5**** |
| RuleId |
integer |
Yes |
The ID of the rule to query. |
12345678 |
| DefenseType |
string |
Yes |
The type of the protection rule. Only the following value is supported:
|
global |
| NextToken |
string |
No |
The pagination token (Token) for the next page. If a next page exists, this field has a return value. Note
If this parameter has a return value, a next page exists. Use the returned NextToken as a request parameter to obtain the data on the next page. Repeat this process until no value is returned, which indicates that all data has been retrieved. |
caeba0bbb2be03f84eb48b699f0***** |
| MaxResults |
integer |
No |
The number of entries per page in a paged query. Valid values: 1 to 100. Default value: 20. |
20 |
| RegionId |
string |
No |
The region in which the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm***q |
| DefenseScene |
string |
Yes |
The WAF protection scenario. Valid values:
|
address_book |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries returned. |
10 |
| RequestId |
string |
The ID of the request. |
F35F45B0-5D6B-4238-BE02-A62D****E840 |
| Rules |
array<object> |
The list of associated rules. |
|
|
object |
The associated rule information. |
||
| RuleId |
integer |
The ID of the protection rule. |
2456789 |
| TemplateId |
integer |
The ID of the protection rule template. |
81501 |
| DefenseScene |
string |
The protection scenario of the protection rule. For more information, refer to the DefenseScene parameter in DescribeDefenseRules. |
custom_acl |
| DefenseType |
string |
The type of the protection rule. Valid values:
|
template |
| RuleName |
string |
The name of the protection rule. |
ruleTest |
| NextToken |
string |
The pagination token (Token) for the next page. If a next page exists, this field has a return value. Note
If this parameter has a return value, a next page exists. Use the returned NextToken as a request parameter to obtain the data on the next page. Repeat this process until no value is returned, which indicates that all data has been retrieved. |
AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS |
| MaxResults |
integer |
The number of entries per page in a paged query. Valid values: 1 to 100. Default value: 20. |
20 |
Examples
Success response
JSON format
{
"TotalCount": 10,
"RequestId": "F35F45B0-5D6B-4238-BE02-A62D****E840",
"Rules": [
{
"RuleId": 2456789,
"TemplateId": 81501,
"DefenseScene": "custom_acl",
"DefenseType": "template",
"RuleName": "ruleTest"
}
],
"NextToken": "AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS",
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.