dospin/list_images.sh
2016-02-14 23:38:28 -06:00

3 lines
208 B
Bash
Executable File

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