GET
/
waap
/
v1
/
domains
/
{domain_id}
/
ddos-info
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
page = client.waap.domains.statistics.get_ddos_info(
    domain_id=1,
    group_by="URL",
    start="2024-04-13T00:00:00+01:00",
)
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

Required range: x > 0

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 data items starting from a specified date in ISO 8601 format

Examples:

"2024-04-13T00:00:00+01:00"

end
string | null

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

Examples:

"2024-04-14T12: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
DdosInfo · object[]
required

List of items returned in the response following given criteria