...
Python client for the EIS Virtual Cloud RESTful APIAPI
The python client allows you to interact with the API using its self-descriptive methods, for instance creating a virtual machine is as easy as calling the create_vm method as follows:
Code Block | ||
---|---|---|
| ||
from pyvss.manager import VssManager vss = VssManager(tk='api_token') # get vms vms = vss.get_vms() # create vm req = vss.create_vm(os='ubuntu64Guest', built='os_install', description='Testing python wrapper', folder='group-v6736', bill_dept='EIS', disks=[100, 100]) uuid = vss.wait_for_request(req['_links']['request'], 'vm_uuid', 'Processed') |
...