oca.Client

class oca.Client(secret=None, address=None, proxy=None)[source]

Bases: object

The client class, represents the connection with the core and handles the xml-rpc calls(see http://www.opennebula.org/documentation:rel3.2:api)

DEFAULT_ONE_ADDRESS = 'http://localhost:2633/RPC2'
DEFAULT_ONE_AUTH = '~/.one/one_auth'
ONE_AUTH_RE = <_sre.SRE_Pattern object at 0x7f855ed3a7c8>
call(function, *args)[source]

Calls rpc function.

Arguments

function
OpenNebula xmlrpc funtcion name (without preceding ‘one.’)
args
function arguments

Previous topic

API Documentation

Next topic

oca.host

This Page