Get Custom CC Policy

Last updated: 2019-05-07 10:23:35

PDF

API Description

This API (GetCustomCCStrategy) is used to obtain the information of a custom CC protection policy.
Protocol: HTTPS
Domain Name: bgpip.api.qcloud.com
API: GetCustomCCStrategy

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 GetCustomCCStrategy.

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

Response Parameters

Parameter Type Description
smode String Policy mode:
matching: by matching
speedlimit: by limiting the speed
exemode String Execution mode:
alg: by verification codes
drop: by blocking
status Integer Status of CC protection.
1: enabled
0: disabled
exeduration Integer Execution duration.
frequency Integer Number of queries per minute. When the policy mode is speedlimit, this parameter is returned.
rulelist 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)