|
1234567891011 |
- #!/bin/bash
-
- if [[ -z "${VULTR_API_KEY}" ]] ; then
- >&2 echo "VULTR_API_KEY not defined in environment"
- exit 1
- fi
-
- path=${1:?no path provided}
- shift
-
- curl ${@} -s -H "API-Key: ${VULTR_API_KEY}" https://api.vultr.com/v1/${path}
|