An API token is required.
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:
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.
- Python SDK
- Go SDK
- curl
Get event log details
Pass an event log ID from the list response to retrieve the same summary fields plus traffic breakdown arrays such asattack_traffic and attack_top_source_countries.
- Python SDK
- Go SDK
- curl