GET
/attacks Retrieve attacks
Returns a list of attacks in chunks.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
chunk* | integer | query | The chunk of attacks you want to retrieve, 0 will give the 10 most recent attacks, 1 the 10 attacks after that. |
filter | string | query | Search string to filter attacks |
limit | integer | query | Number of attacks to return per chunk |
Response
200
dataobjectattacksarraysuccessbooleanRequest
curl -X GET "https://shield.royalehosting.net/api/v2/attacks" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://shield.royalehosting.net/api/v2/attacks", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://shield.royalehosting.net/api/v2/attacks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())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
}