Starting a VM

A virtual machine may be in a stopped state and your application program may require to start it. The VM can be powered by invoking the start_server() function by passing it the ID of the VM or an object of the Server class.

The following code invokes start_server() by passing the ID of the VM:

def start_server(conn):
server_id="7cdaa375-f1b5-40ab-81bd-7e3d052f370d"
conn.compute.start_server(server_id)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.2.78