Skip to content

Instantly share code, notes, and snippets.

@smj10j
Last active April 25, 2016 21:35
Show Gist options
  • Select an option

  • Save smj10j/ef1e34951cc77de90f6b to your computer and use it in GitHub Desktop.

Select an option

Save smj10j/ef1e34951cc77de90f6b to your computer and use it in GitHub Desktop.
Check Railgun status on CloudFlare
#!/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