Lists the custom HTTP flood protection rules of a domain name.

Request parameters

Name Type Required Description
Domain String Yes The domain name to be queried.
CurrentPage Integer Yes Specifies the number of pages to display. Minimum value: 1.
PageSize Integer Yes Specifies the number of rows per page. Maximum value: 10.

Response parameters

Name Type Description
RequestId String The unique identifier (ID) for this request.
RuleList Object The custom HTTP flood protection object. For a structure description, see RuleList.
TotalCount Integer The total number of rules.
Table 1. RuleList
Name Type Description
Rule List The list of custom HTTP flood protection rules. For a structure description, see Rule.
Table 2. Rule
Name Type Description
Name String The rule name.
Note You can use a rule name to search for specific rules.
BlockingType String The blocking type. This parameter defines the action to be triggered after the rule is matched. Value:
  • captcha: Performs human-machine identification
  • close: Blocks the request
BlockingTime Integer The blocking duration, in seconds. Value range: 60-86,400.
Interval Integer The inspection interval, in seconds. Value range: 5-10,800. Use this parameter with VisitCount to define the normal request frequency from one client IP at the inspection interval.
MatchingRule String The matching mode. Value:
  • prefix: Prefix match
  • match: Exact match
Uri String The URI to be inspected. For example, /a/b/c.
VisitCount Integer The normal request frequency from one client IP at the inspection interval (defined by Interval). Value range: 2-2,000. If the request frequency from one client IP exceed the normal frequency, the rule is triggered.

Example

Request example
https://ddospro.cn-hangzhou.aliyuncs.com/?Action=ListCcCustomedRule
&Domain=www.aliyun.com
&CurrentPage=1
&PageSize=10
&public parameters
Response example
  • JSON format
    {
    	"RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E",
    	"RuleList":{
            "Rule":[
                {
                    "BlockingType":"close",
                    "BlockingTime":7380,
                    "VisitCount":123,
                    "Uri":"/a/a/a",
                    "MatchingRule":"match",
                    "Name":"testttt",
                    "Interval":123
                }
            ]
        },
    	"TotalCount":3
    }