Class Xen::Connection
In: lib/xen/connection.rb
Parent: Object

Methods

call   new   session_id   to_s  

Public Class methods

Initializes an xml-rpc connection to a Xen host, and logs in with the given credentials.

Example

Xen::Connection.new (‘xenhost.example.com’, 2000, ‘login’, ‘pass’)

Public Instance methods

Make a direct call to the Xen API.

Example

call(‘session.get_this_host’, session_id) # => {"Status"=>"Success", "Value"=>"3a8f495d-939d-823b-fa08-fc407c73dc94"}

Returns the session_id of the connection

[Validate]