2.12.
CLASS: HOST
CHAPTER 2.
API REFERENCE
RPC name: list methods
Overview:
List all supported methods.
Signature:
(string Set) list_methods (session_id s)
Return Type:
string Set
The name of every supported method.
RPC name: license apply
Overview:
Apply a new license to a host.
Signature:
void license_apply (session_id s, host ref host, string contents)
Arguments:
type
name
description
host ref
host
The host to upload the license to
string
contents
The contents of the license file, base64 en-
coded
Return Type:
void
Possible Error Codes:
LICENSE PROCESSING ERROR
RPC name: destroy
Overview:
Destroy specified host record in database.
Signature:
void destroy (session_id s, host ref self)
Arguments:
type
name
description
host ref
self
The host record to remove
Return Type:
void
RPC name: assert can evacuate
Overview:
Check this host can be evacuated.
Signature:
void assert_can_evacuate (session_id s, host ref host)
114