Add Custom CC Policy

Last updated: 2020-06-09 15:19:06

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new Anti-DDoS Advanced API 3.0 which is standardized and faster.

    API Description

    This API (AddCustomCCStrategy) is used to add a custom CC protection policy. It’s only available when CC protection is enabled, and the policy will not take effect until the threshold of CC protection is triggered.
    Protocol: HTTPS
    Domain Name: bgpip.api.qcloud.com
    API: AddCustomCCStrategy

    Request Parameters

    Below is a list of API request parameters. You need to add common request parameters to your request when calling this API. For more information, see Common Request Parameters. The Action field for this API is AddCustomCCStrategy.

    Parameter Required Type Description
    bgpId Yes String Resource ID of the Anti-DDoS Advanced instance
    name Yes String Policy name. Must be unique in the instance.
    smode Yes String Policy mode:
    matching: by matching
    speedlimit: by limiting the speed)
    exemode Yes String Action mode:
    alg: verify requests with verification codes
    drop: block all requests
    exeduration Yes Integer Execution duration. This parameter needs to be reserved and set to 0 as recommended, which means that the policy will be executed until the attacks are defeated.
    frequency No Integer Number of queries per minute. When the policy mode is speedlimit, this parameter is required.
    rulelist No Array When the smode is matching, this parameter is required.
    "rulelist":[
    {"key":"host","operate":"include","value":"test1"},
    {"key":"cgi","operate":"include","value":"test2"}
    ]

    Key: host, cgi, ua, referer
    Operate: include, not_include, equal
    Value: string(no more than 31 characters)

    Response Parameters

    None.

    Was this page helpful?

    Was this page helpful?

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