QueryCCAttackQPS

갱신 시간: 2023-08-09 18:19:44

Query CC Attack QPS

  • 단일 사용자 통화 빈도: 300/5min
  • 해당 상품(제품): Flood Shield,Application Shield
API 인증에 관한 자세한 내용은 다음을 참조하십시오:API 인증 개요

요청 파라미터

Body 파라미터

파라미터 이름설명
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

응답 파라미터

Body 파라미터

파라미터 이름설명
msgString
response message
timeString
Time of CC attack
hitLong
Number of total requests
hitdenyLong
Number of CC attack
codeString
status code 200: success

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
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

예제

SHELL
SHELL
요청 예제
복사 복사 완료
#!/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"
}'
응답 예제
복사 복사 완료
{
  "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
  }
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.