1
0
Files
hetzner-automation/list.py
Philipp Klüter e02e6272d2 initial dev commit
2020-05-17 22:44:14 +02:00

7 lines
308 B
Python

from hcloud import Client
client = Client(token="JalvbaPbizgErC2PoBSmDiFX0TKW0WLzbarxwFyNtJpx1xCvnEx3LI1B2Thl836f") # Please paste your API token here between the quotes
servers = client.servers.get_all()
for server in servers:
print("Servername:", server.name)
print("Servername:", server.status)