Get BGP hijack events
client.radar.bgp.hijacks.events.list(EventListParams { dateEnd, dateRange, dateStart, 13 more } query?, RequestOptionsoptions?): V4PagePagination<EventListResponse { asn_info, events, total_monitors } >
GET/radar/bgp/hijacks/events
Retrieves the BGP hijack events.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Get BGP hijack events
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const eventListResponse of client.radar.bgp.hijacks.events.list()) {
console.log(eventListResponse.asn_info);
}{
"result": {
"asn_info": [
{
"asn": 0,
"country_code": "country_code",
"org_name": "org_name"
}
],
"events": [
{
"id": 0,
"confidence_score": 0,
"duration": 0,
"event_type": 0,
"hijack_msgs_count": 0,
"hijacker_asn": 0,
"hijacker_country": "hijacker_country",
"is_stale": true,
"max_hijack_ts": "max_hijack_ts",
"max_msg_ts": "max_msg_ts",
"min_hijack_ts": "min_hijack_ts",
"on_going_count": 0,
"peer_asns": [
0
],
"peer_ip_count": 0,
"prefixes": [
"string"
],
"tags": [
{
"name": "name",
"score": 0
}
],
"victim_asns": [
0
],
"victim_countries": [
"string"
]
}
],
"total_monitors": 0
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0
},
"success": true
}Returns Examples
{
"result": {
"asn_info": [
{
"asn": 0,
"country_code": "country_code",
"org_name": "org_name"
}
],
"events": [
{
"id": 0,
"confidence_score": 0,
"duration": 0,
"event_type": 0,
"hijack_msgs_count": 0,
"hijacker_asn": 0,
"hijacker_country": "hijacker_country",
"is_stale": true,
"max_hijack_ts": "max_hijack_ts",
"max_msg_ts": "max_msg_ts",
"min_hijack_ts": "min_hijack_ts",
"on_going_count": 0,
"peer_asns": [
0
],
"peer_ip_count": 0,
"prefixes": [
"string"
],
"tags": [
{
"name": "name",
"score": 0
}
],
"victim_asns": [
0
],
"victim_countries": [
"string"
]
}
],
"total_monitors": 0
},
"result_info": {
"count": 0,
"page": 0,
"per_page": 0,
"total_count": 0
},
"success": true
}