dospin/list_images.sh

3 lines
211 B
Bash
Raw Normal View History

2016-02-14 23:38:28 -06:00
#! /usr/bin/env sh
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer `cat dospin.json | jq -r .ApiToken`" "https://api.digitalocean.com/v2/images?page=1&per_page=100&private=true" | jq .