first commit

This commit is contained in:
Mabe
2026-05-07 20:53:10 +02:00
commit 7ddff5ac9b
16 changed files with 1359 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# -t: Hetzner API token
API_TOKEN="Your-API-Token"
while getopts ":t:z:n:" opt; do
case $opt in
t) API_TOKEN="$OPTARG";;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
curl \
-H "Authorization: Bearer $API_TOKEN" \
"https://api.hetzner.cloud/v1/zones/"