Move scripts to scripts directory
This commit is contained in:
2
scripts/list_droplets.sh
Executable file
2
scripts/list_droplets.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#! /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/droplets?page=1&per_page=100&private=true" | jq .
|
2
scripts/list_images.sh
Executable file
2
scripts/list_images.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#! /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 .
|
4
scripts/list_keys.sh
Executable file
4
scripts/list_keys.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
echo Keys
|
||||
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer `cat dospin.json | jq -r .ApiToken`" "https://api.digitalocean.com/v2/account/keys" | jq .
|
4
scripts/list_volumes.sh
Executable file
4
scripts/list_volumes.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
echo Volumes
|
||||
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer `cat dospin.json | jq -r .ApiToken`" "https://api.digitalocean.com/v2/volumes" | jq .
|
Reference in New Issue
Block a user