GET
/
waap
/
v1
/
domains
/
{domain_id}
/
ddos-info
import os
from datetime import datetime
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_info(
    domain_id=0,
    group_by="URL",
    start=datetime.fromisoformat("2019-12-27T18:11:19.117"),
)
page = page.results[0]
print(page.identity)
{
  "limit": 123,
  "offset": 123,
  "count": 123,
  "results": [
    {
      "type": "URL",
      "identity": "<string>",
      "count": 123
    }
  ]
}

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

limit
integer
default:10

Number of items to return

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

Number of items to skip

Required range: x >= 0
group_by
enum<string>
required

The identity of the requests to group by

Available options:
URL,
User-Agent,
IP
start
string
required

Filter traffic starting from a specified date in ISO 8601 format

end
string

Filter traffic up to a specified end date in ISO 8601 format. If not provided, defaults to the current date and time.

Response

200
application/json

Successful Response

The response is of type object.