Get latest Internet outages and anomalies
radar.annotations.outages.get(OutageGetParams**kwargs) -> OutageGetResponse
GET/radar/annotations/outages
Retrieves the latest Internet outages and anomalies.
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 latest Internet outages and anomalies
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
outage = client.radar.annotations.outages.get()
print(outage.annotations){
"result": {
"annotations": [
{
"id": "550",
"asns": [
189
],
"asnsDetails": [
{
"asn": "189",
"name": "LUMEN-LEGACY-L3-PARTITION",
"locations": {
"code": "US",
"name": "United States"
}
}
],
"dataSource": "ALL",
"eventType": "OUTAGE",
"locations": [
"US"
],
"locationsDetails": [
{
"code": "US",
"name": "United States"
}
],
"origins": [
"amazon-us-east-1"
],
"originsDetails": [
{
"name": "us-east-1 Amazon Web Services",
"origin": "amazon-us-east-1"
}
],
"outage": {
"outageCause": "CABLE_CUT",
"outageType": "NATIONWIDE"
},
"startDate": "2019-12-27T18:11:19.117Z",
"description": "example",
"endDate": "2019-12-27T18:11:19.117Z",
"linkedUrl": "http://example.com",
"scope": "Colima, Michoacán, México"
}
]
},
"success": true
}Returns Examples
{
"result": {
"annotations": [
{
"id": "550",
"asns": [
189
],
"asnsDetails": [
{
"asn": "189",
"name": "LUMEN-LEGACY-L3-PARTITION",
"locations": {
"code": "US",
"name": "United States"
}
}
],
"dataSource": "ALL",
"eventType": "OUTAGE",
"locations": [
"US"
],
"locationsDetails": [
{
"code": "US",
"name": "United States"
}
],
"origins": [
"amazon-us-east-1"
],
"originsDetails": [
{
"name": "us-east-1 Amazon Web Services",
"origin": "amazon-us-east-1"
}
],
"outage": {
"outageCause": "CABLE_CUT",
"outageType": "NATIONWIDE"
},
"startDate": "2019-12-27T18:11:19.117Z",
"description": "example",
"endDate": "2019-12-27T18:11:19.117Z",
"linkedUrl": "http://example.com",
"scope": "Colima, Michoacán, México"
}
]
},
"success": true
}