Skip to content

Instantly share code, notes, and snippets.

@kitschysynq
Created September 12, 2016 15:17
Show Gist options
  • Save kitschysynq/865625f777f5bf260015c402ecc44dbe to your computer and use it in GitHub Desktop.
Save kitschysynq/865625f777f5bf260015c402ecc44dbe to your computer and use it in GitHub Desktop.
List slugs from DigitalOcean API
#!/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