Пример #1
0
def main():
	client = helper.get_client()	
	for i in range(1,6):
		createTorqueServer(client)
	#deleteServer(client)
	monitorServers(client)
Пример #2
0
#!/usr/bin/env python
import helper

client = helper.get_client()
keypairs = client.keypairs.list()
for keypair in keypairs:
    print keypair.name
    print keypair.fingerprint
client.keypairs.delete("test")
keypair = client.keypairs.create("test")
with open("test.pem", "w") as f:
    f.write(keypair.private_key)
keypairs = client.keypairs.list()
for keypair in keypairs:
    print keypair.name
    print keypair.fingerprint