GET
/
waap
/
v1
/
domains
/
{domain_id}
/
ddos-attacks
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.waap.domains.analytics.list_ddos_attacks(
    domain_id=0,
)
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

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 | null

Filter attacks starting from a specified date in ISO 8601 format

end_time
string | null

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

Response

200
application/json

Successful Response

The response is of type object.