Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
python pyvss/manager.py get_vms 'summary=1&name=pm'
[{u'_links': {u'self': u'https://vss-api.eis.utoronto.ca:8001/v2/vm/<vm_uuid>'},
  u'cpuCount': 2,
  u'folder': {u'_links': {u'self': u'https://vss-api.eis.utoronto.ca:8001/v2/folder/group-v519'},
              u'moref': u'group-v519',
              u'name': u'Public',
              u'parent': u'API'},
  u'guestFullName': u'Ubuntu Linux (64-bit)',
  u'ipAddress': u'<ip_addr>',
  u'memoryMB': 4096,
  u'name': u'1502P-pm',
  u'overallStatus': u'green',
  u'powerState': u'poweredOn',
  u'storageB': 96637166467,
  u'uuid': u'<vm_uuid>'}]

How to install

Installing the library is quite simple. Either clone the GitLab repository or download the source code or use pip to do everything for you:

Code Block
# git
git clone git@gitlab.eis.utoronto.ca/vss/py-vss.git
cd py-vss
python setup.py install
 
# pip
virtualenv ~/VirtualEnvs/pyvss
. ~/VirtualEnvs/pyvss/activate
pip install git+ssh://git@gitlab.eis.utoronto.ca/vss/py-vss.git