You can call this operation to query the ID of the rule group configured in the RegEx protection engine for a specified domain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDomainRuleGroup |
The operation that you want to perform. Set the value to DescribeDomainRuleGroup. |
Domain | String | Yes | 1.example.com |
The domain that has been added to WAF. |
InstanceId | String | Yes | waf_elasticity-cn-0xldbqtm005 |
The ID of the WAF instance. Note You can call the DescribeInstanceInfo operation to query the ID of a WAF instance.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D7861F61-5B61-46CE-A47C-6B19160D5EB0 |
The ID of the request. |
RuleGroupId | Long | 1012 |
The ID of the rule group configured in the RegEx protection engine. The system provides the following default rule groups:
Note If a custom rule group is configured for the specified domain, the ID of this custom
group is returned.
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeDomainRuleGroup
&Domain=1.example.com
&InstanceId=waf_elasticity-cn-0xldbqtm005
&<Common request parameters>
Sample success responses
XML
format
<RequestId>D7861F61-5B61-46CE-A47C-6B19160D5EB0</RequestId>
<RuleGroupId>1012</RuleGroupId>
JSON
format
{
"RequestId":"D7861F61-5B61-46CE-A47C-6B19160D5EB0",
"RuleGroupId":"1012"
}
Error codes
For a list of error codes, visit the API Error Center.