Created
August 28, 2020 16:55
-
-
Save eheydrick/a3d3e77b6948eea1ed55ba64e44af6f4 to your computer and use it in GitHub Desktop.
Get list of Fastly datacenters with curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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