Get BGP hijack events
client.Radar.BGP.Hijacks.Events.List(ctx, query) (*V4PagePagination[BGPHijackEventListResponse], error)
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
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/cloudflare-go"
"github.com/stainless-sdks/cloudflare-go/option"
"github.com/stainless-sdks/cloudflare-go/radar"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
page, err := client.Radar.BGP.Hijacks.Events.List(context.TODO(), radar.BGPHijackEventListParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"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
}