GET /attacks

Retrieve attacks

Returns a list of attacks in chunks.

Parameters

NameTypeInDescription
chunk*
integerqueryThe chunk of attacks you want to retrieve, 0 will give the 10 most recent attacks, 1 the 10 attacks after that.
filter
stringquerySearch string to filter attacks
limit
integerqueryNumber of attacks to return per chunk

Response

200
dataobject
attacksarray
successboolean

Request

curl -X GET "https://shield.royalehosting.net/api/v2/attacks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID"

Response

{
  "data": {
    "attacks": [
      {
        "attack_id": "00c299dc77a6bcfd594145786222fce3658cb53f",
        "description": "UDP Flood; TCP SYN Flood; TCP SYN/ACK Flood",
        "duration": 240,
        "volume": 157,
        "event_time": "2024-08-21 18:54:00",
        "mbps": 13,
        "pps": 3935,
        "start_time": "2024-08-21 18:50:00",
        "status": "end",
        "dest": "45.140.141.151/32"
      }
    ]
  },
  "success": true
}