umorpha-boxes/bin/vultr-api

11 lines
295 B
Plaintext
Raw Normal View History

2023-11-03 23:15:57 +00:00
#!/usr/bin/env bash
# Copyright (C) 2023 Umorpha Systems
# SPDX-License-Identifier: AGPL-3.0-or-later
curl \
--no-progress-meter \
--fail \
-H "Authorization: Bearer ${VULTR_API_KEY:-$(cat secrets/vultr-api-key.txt)}" \
-H "Content-Type: application/json" \
"https://api.vultr.com/v2/$@"