@@ -0,0 +1,832 @@
+from libcloud.compute.types import Provider%0Afrom libcloud.compute.providers import get_driver%0A%0Acls = get_driver(Provider.CLOUDSIGMA)%0Adriver = cls('username', 'password', region='zrh', api_version='2.0')%0A%0Aname = 'test node'%0Asize = driver.list_sizes()%5B0%5D%0A%0Adrives = driver.ex_list_library_drives()%0Aimage = %5Bdrive for drive in drives if drive.name == 'FreeBSD 8.2' and%0A         drive.media == 'cdrom'%5D%5B0%5D%0A%0A# 1. Create a node%0Anode = driver.create_node(name=name, size=size, image=image)%0Aprint(node)%0A%0A# 2. Wait for node to come online%0Adriver.wait_until_running(nodes=%5Bnode%5D)%0A%0A# 3. Enable and obtain VNC URL so we can connect to the VNC server and walk%0A# through the installation process%0Atunnel_url = driver.ex_open_vnc_tunnel(node=node)%0A%0Aprint('VNC tunnel URL: %25s' %25 (tunnel_url))%0Aprint('VNC password: %25s' %25 (node.extra%5B'vnc_password'%5D))%0A

Add example.