initial dev commit
This commit is contained in:
13
details.py
Normal file
13
details.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from hcloud import Client
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("serverName")
|
||||
args = parser.parse_args()
|
||||
serverName = args.serverName
|
||||
print(serverName)
|
||||
|
||||
client = Client(token="JalvbaPbizgErC2PoBSmDiFX0TKW0WLzbarxwFyNtJpx1xCvnEx3LI1B2Thl836f") # Please paste your API token here between the quotes
|
||||
|
||||
server = client.servers.get_by_name(serverName)
|
||||
print("Status: ", server.status)
|
||||
Reference in New Issue
Block a user