Web Application Firewall

GetWAFAttackEvent

갱신 시간: 2023-11-28 10:15:42

Query the key incidents of domain.

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

요청 파라미터

Body 파라미터

파라미터 이름설명
*domains
Domain, array.
*startTime
Start time, yyyy-MM-dd HH:mm:ss.
*endTime
End time, yyyy-MM-dd HH:mm:ss.
timeZone
Time zone, GMT+8 by default.

응답 파라미터

Body 파라미터

파라미터 이름설명
code
Return 0 means success, please see to check other status code.
message
Error message or Success.
data
Return data.
attackEventList
Attack events.
attackCount
Attack requests.
startTime
Start time of attack.
endTime
End time of attack.
attackType
Attack type.
ip
Attacker Ip.
attackEventType
Attack event type.
attackTypeNameEn
English name of attack type.
attackTypeName
Chinese name of attack type.
eventNameEn
English name of attack event.
eventName
Chinese name of attack event.
totalCount
Number of attack events.

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
22992000ERROR_SYSTEM200System error.
22992001ERROR_PARAM200Param invalid.
22992002ERROR_HEADER200request header param error
22992003ERROR_ZONE200The time zone parameter is abnormal, please start with GMT
22992004ERROR_TIME_ZONE200time zone conver error

예제

JSON
JSON
요청 예제
복사 복사 완료
#!/bin/bash
username="example_username"
# Note that this must be a single quote to avoid the special $ character
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/api/waf/report/query-attack-event-list" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{ 
  "domains": [ "example.xxx.xxx"], 
  "endTime": "2021-09-23 00:00:00", 
  "startTime": "2021-09-22 00:00:00" 
}'
응답 예제
복사 복사 완료
{
  "code": "0",
  "message": "Success",
  "data": {
    "attackEventList": [
      {
        "attackCount": 11647,
        "startTime": "2021-09-22 11:28:42",
        "endTime": "2021-09-22 16:09:21",
        "attackType": "WAF_FORCE_CRACKING",
        "customId": "xxx",
        "ip": "10.8.135.149",
        "attackEventType": "highFrequencyAttack",
        "attackTypeNameEn": "Rate Limiting",
        "attackTypeName": "Rate Limiting",
        "eventNameEn": "10.8.135.149 IP launch Brute Force attacks.",
        "eventName": "10.8.135.149 IP launch Brute Force attacks."
      }
    ],
    "totalCount": 1
  }
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.