Skip to main content
The examples below list and retrieve DDoS event logs. Protected networks, protection profiles, BGP announces, and templates are in the DDoS Protection API reference.
An API token is required.
Generate a token in the Gcore Customer Portal and send it in the Authorization header of each request to https://api.gcore.com. Open a terminal and set the token as an environment variable before running the examples:
The Python and Go SDKs read GCORE_API_KEY automatically. curl sends the same value as APIKey in the Authorization header.

List event logs

Each item maps to a DDoS Attack (ddos_alert) or RTBH (rtbh_alert) row in the events log, so the same incidents can be pulled into an external monitoring system.

Get event log details

Pass an event log ID from the list response to retrieve the same summary fields plus traffic breakdown arrays such as attack_traffic and attack_top_source_countries.