Last active
April 25, 2016 21:35
-
-
Save smj10j/ef1e34951cc77de90f6b to your computer and use it in GitHub Desktop.
Check Railgun status on CloudFlare
This file contains hidden or 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
| #!/bin/bash | |
| # Requires [jq](https://stedolan.github.io/jq/) | |
| # Can be installed via brew with `brew install jq` | |
| ZONE_ID= | |
| RAILGUN_ID= | |
| API_KEY= | |
| EMAIL= | |
| curl -s -o - -X GET "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/railguns/$RAILGUN_ID/diagnose" \ | |
| -H "X-Auth-Email: $EMAIL" \ | |
| -H "X-Auth-Key: $API_KEY" \ | |
| -H "Content-Type: application/json" | jq '.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment