Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 487 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 487 Bytes

Gandi Hosting resources

This is a small library intended to be used with ipython.

You need a configuration file:

[hosting]
uri = https://rpc.gandi.net/xmlrpc/2.0/
key = XXXXXXXXXXXXXXXXXXXXXXXX

then you can

from gandi_hosting import *
gh = GandiHosting.from_config('myconfig.cfg')

now a few examples

add memory to a vm

myvm = gh.vms['myvmhostname']
myvm.memory = 1024

modify bandwidth

myvm.ifaces[0].bandwidth = 10240.0