initial dev commit
This commit is contained in:
7
list.py
Normal file
7
list.py
Normal 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)
|
||||
Reference in New Issue
Block a user