Skip to main content
GET
/
waap
/
v1
/
domains
/
{domain_id}
/
ddos-attacks
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
page = client.waap.domains.statistics.get_ddos_attacks(
    domain_id=1,
)
page = page.results[0]
print(page.end_time)
{
  "limit": 123,
  "offset": 123,
  "count": 123,
  "results": [
    {
      "start_time": "2023-11-07T05:31:56Z",
      "end_time": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

Required range: x > 0

Query Parameters

ordering
enum<string>

Sort the response by given field.

Available options:
start_time,
-start_time,
end_time,
-end_time
limit
integer
default:100

Number of items to return

Required range: 0 <= x <= 100
offset
integer
default:0

Number of items to skip

Required range: 0 <= x <= 100000
start_time
string<date-time> | null

Filter attacks starting from a specified date in ISO 8601 format

Examples:

"2024-04-26T13:32:49Z"

end_time
string<date-time> | null

Filter attacks up to a specified end date in ISO 8601 format

Examples:

"2024-04-27T13:00:00Z"

Response

Successful Response

limit
integer
required

Number of items requested in the response

offset
integer
required

Items response offset used

count
integer
required

Number of items contain in the response

results
DdosAttack · object[]
required

List of items returned in the response following given criteria

I