Last updated: 2020-07-31 10:09:11

1. API Description

Domain name for API request:

This API is used to add a custom frequency control rule for layer-7 CC access (it works in the IP + Host dimension and does not support specific URIs). As it has been disused, please call the new CreateCCFrequencyRules API, which supports both IP + Host and URI.

A maximum of 10 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: CreateL7CCRule.
Version Yes String Common parameter. The value used for this API: 2018-07-09.
Region No String Common parameter. This parameter is not required for this API.
Business Yes String Anti-DDoS service type. bgpip: Anti-DDoS Advanced; net: Anti-DDoS Ultimate
Id Yes String Anti-DDoS instance ID
Method Yes String Operation. Valid values: [query (query), add (add), del (delete)]
RuleId Yes String Layer-7 forwarding rule ID, such as rule-0000001
RuleConfig.N No Array of CCRuleConfig Custom layer-7 CC protection rule. If the Method is query, this field can be left empty; if the Method is add or del, it is required, and the array length can only be 1;

3. Output Parameters

Parameter Name Type Description
RuleConfig Array of CCRuleConfig Custom layer-7 CC protection rule parameters. If custom CC protection rule is not enabled, an empty array will be returned.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying custom layer-7 CC access frequency control rule

Input Example
&<Common request parameters>

Output Example

  "Response": {
    "RequestId": "07efcf74-79b1-4faa-a61e-ec9310675b67",
    "RuleConfig": [
        "Period": 60,
        "ReqNumber": 1,
        "Action": "drop",
        "ExeDuration": 1

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback