1
0

initial dev commit

This commit is contained in:
Philipp Klüter
2020-05-17 22:44:14 +02:00
parent a118301f77
commit e02e6272d2
6 changed files with 140 additions and 0 deletions

7
list.py Normal file
View File

@@ -0,0 +1,7 @@
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)