Skip to content

Instantly share code, notes, and snippets.

@eheydrick
Created August 28, 2020 16:55
Show Gist options
  • Save eheydrick/a3d3e77b6948eea1ed55ba64e44af6f4 to your computer and use it in GitHub Desktop.
Save eheydrick/a3d3e77b6948eea1ed55ba64e44af6f4 to your computer and use it in GitHub Desktop.
Get list of Fastly datacenters with curl
$ curl -s -H "Fastly-Key: <API Key>" https://api.fastly.com/datacenters | jq .
[
{
"code": "AMS",
"name": "Amsterdam",
"group": "Europe",
"coordinates": {
"x": 0,
"y": 0,
"latitude": 52.308613,
"longitude": 4.763889
},
"shield": "amsterdam-nl"
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment