Flood Shield

QueryCCAttackQPS

Update time: 2023-08-09 18:19:44

Query CC Attack QPS

  • Limit of request rate per user: 300/5min
  • Applicable Products: Flood Shield,Application Shield
For API authentication details, please refer to: API Authentication Overview

Request

Body Params

NameDescription
startdateString
packageIdString
packageId or acctype should be selected at least one.
needDetailString
need Detail : 1 no need Detail: 0 default : 1
enddateString
domainsString
customCodeString
custom code
acctypeString
packageId or acctype should be selected at least one. acctype( Only One can be selected): gess,fsa,app-s,dms-https,wss, dms, wss-https,s-appa, wsa,esa,wsa-https

Response

Body Params

NameDescription
msgString
response message
timeString
Time of CC attack
hitLong
Number of total requests
hitdenyLong
Number of CC attack
codeString
status code 200: success

Error code

Error code(code)Description(message)HTTP statusSemantic
40000PARAM_ERROR_CODE200Parameter error
40001CUSTOMER_NOT_EXIST200Customer does not exist.
40002PACKAGE_NOT_EXIST200Package does not exist.
40012TIME_PARAM_FORMATE_RROR200Format of time is not correct.
40013TIME_PARAM_RANGE_ERROR200Range of time is not correct.
500INTERNAL_ERROR_CODE200System Error

Example

SHELL
SHELL
Request example
Copy Copy success
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`

curl -i --url "https://api.cdnetworks.com/soc/api/report/QueryCCAttackQPS" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H 'Content-Type: application/json' \
-d '{
"customCode": "sectest2018",
"acctype": "dms",
"startdate": "2018-08-01 00:00:00",
"enddate": "2018-08-31 00:00:00"
}'
Response example
Copy Copy success
{
  "code": 200,
  "msg": "success",
  "data": [
    {
      "time": "2018-08-27 01:05:00",
      "hit": 45,
      "hitdeny": 10
    },
    {
      "time": "2018-08-27 02:15:00",
      "hit": 55,
      "hitdeny": 20
    }
  ],
  "peakStat": {
    "peakTime": "2018-08-27 02:00:00",
    "peakValue": 315
  }
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!