Created
November 30, 2013 01:58
-
-
Save elbuo8/7714478 to your computer and use it in GitHub Desktop.
Simple script to get all the Ansible requirements for DigitalOcean
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
endpoints=(sizes regions images ssh_keys) | |
for i in "${endpoints[@]}"; do | |
url=`printf "https://api.digitalocean.com/%s/?client_id=%s&api_key=%s" $i $DO_CLIENT_ID $DO_API_KEY` | |
curl $url | python -mjson.tool | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment