2.9.
CLASS: VM
CHAPTER 2.
API REFERENCE
RPC name: create
Overview:
Create a new VM instance, and return its handle.
Signature:
(VM ref) create (session_id s, VM record args)
Arguments:
type
name
description
VM record
args
All constructor arguments
Return Type:
VM ref
reference to the newly created object
RPC name: destroy
Overview:
Destroy the specified VM. The VM is completely removed from the system. This function can
only be called when the VM is in the Halted State.
Signature:
void destroy (session_id s, VM ref self)
Arguments:
type
name
description
VM ref
self
reference to the object
Return Type:
void
RPC name: get by uuid
Overview:
Get a reference to the VM instance with the specified UUID.
Signature:
(VM ref) get_by_uuid (session_id s, string uuid)
Arguments:
type
name
description
string
uuid
UUID of object to return
Return Type:
VM ref
reference to the object
97