add fe to hetzner-list

This commit is contained in:
Jakobus Schürz 2023-09-12 08:03:42 +02:00
parent 1c68ef8be0
commit 1c9c97e544

View file

@ -637,7 +637,8 @@ EOF
function update-hetzner-serverlist()
{
for i in basic-services sc xe tu; do
for i in basic-services sc xe tu fe; do
echo "Retrieve servers for ${i}"
curl -s -H "Authorization: Bearer $(pass show hetzner.com/projects/${i}/api-token)" \
https://api.hetzner.cloud/v1/servers \
| /usr/bin/jq '.servers[].public_net.ipv4.ip'|sed -e 's/\"//g' \