Created
September 12, 2016 15:17
-
-
Save kitschysynq/865625f777f5bf260015c402ecc44dbe to your computer and use it in GitHub Desktop.
List slugs from DigitalOcean API
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
#!/bin/sh | |
curl -X GET -q -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_API_KEY" "https://api.digitalocean.com/v2/images?per_page=100" | jq '.images[].slug | values' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment