Module Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Import alias Print AttributeLoad NameLoad attr NameLoad Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp TupleLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Lambda arguments args NameParam defaults TupleLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr ListLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Return NameLoad orelse Assign NameStore Num While CompareLt NameLoad Num body Assign NameStore BinOpAdd TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call AttributeLoad NameLoad attr Num Str orelse Return NameLoad Raise Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call Call NameLoad NameLoad BinOpMod Str NameLoad NameLoad If CompareEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Num Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryFinally body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Return Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr NameLoad NameLoad orelse TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str keyword Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr CompareNotEq Call NameLoad NameLoad NameLoad CompareNotIn Str NameLoad body Raise Call AttributeLoad NameLoad attr Num BinOpAdd Str NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str orelse Raise Call AttributeLoad NameLoad attr Num Str orelse If CompareIn Str NameLoad body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Str body Return NameLoad orelse Raise Call NameLoad SubscriptLoad NameLoad Index Str orelse Raise Call AttributeLoad NameLoad attr Num Str decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return BinOpMod Str AttributeLoad NameLoad attr orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A socket N/A gettext N/A httplib N/A xmlrpclib simplestack.common.config config N/A translation N/A N/A gettext translation xen-xm fallback True N/A API_VERSION_1_1 1.1 N/A API_VERSION_1_2 1.2 Failure N/A Exception N/A __init__ N/A N/A self details N/A N/A N/A N/A self details details N/A __str__ N/A N/A self N/A N/A N/A N/A N/A N/A str N/A self details N/A N/A N/A Exception N/A exn N/A N/A sys N/A N/A sys stderr exn N/A N/A Xen-API failure: %s N/A str N/A self details N/A _details_map N/A N/A self N/A N/A N/A N/A dict N/A N/A N/A str i N/A N/A self details N/A i N/A i N/A range N/A len N/A self details N/A N/A N/A _RECONNECT_AND_RETRY N/A N/A N/A _ N/A N/A UDSHTTPConnection N/A N/A httplib HTTPConnection N/A N/A HTTPConnection subclass to allow HTTP over Unix domain sockets.  connect N/A N/A self N/A N/A N/A path N/A N/A N/A self host replace _ / N/A N/A self sock N/A N/A socket socket N/A socket AF_UNIX N/A socket SOCK_STREAM N/A N/A N/A N/A self sock connect path N/A N/A UDSHTTP N/A N/A httplib HTTP N/A N/A _connection_class UDSHTTPConnection N/A UDSTransport N/A N/A xmlrpclib Transport N/A __init__ N/A N/A self use_datetime N/A 0 N/A N/A N/A self _use_datetime use_datetime N/A N/A self _extra_headers N/A N/A add_extra_header N/A N/A self key value N/A N/A N/A N/A self _extra_headers N/A N/A key value N/A make_connection N/A N/A self host N/A N/A N/A N/A UDSHTTP host N/A send_request N/A N/A self connection handler request_body N/A N/A N/A N/A N/A connection putrequest POST handler N/A N/A key value N/A self _extra_headers N/A N/A N/A N/A connection putheader key value N/A N/A Session N/A N/A xmlrpclib ServerProxy N/A N/A A server proxy and session manager for communicating with xapi using
    the Xen-API.

    Example:

    session = Session('http://localhost/')
    session.login_with_password('me', 'mypassword')
    session.xenapi.VM.start(vm_uuid)
    session.xenapi.session.logout()
     __init__ N/A N/A self uri transport encoding verbose allow_none N/A None None 0 1 N/A N/A N/A N/A N/A xmlrpclib ServerProxy __init__ self uri transport encoding verbose allow_none N/A N/A self transport transport N/A N/A self _session None N/A N/A self last_login_method None N/A N/A self last_login_params None N/A N/A self API_version API_VERSION_1_1 N/A xenapi_request N/A N/A self methodname params N/A N/A N/A N/A N/A methodname startswith login N/A N/A N/A N/A self _login methodname params N/A None N/A N/A N/A N/A methodname logout N/A methodname session.logout N/A N/A N/A N/A self _logout N/A None N/A N/A retry_count 0 N/A N/A retry_count 3 N/A N/A full_params N/A N/A N/A self _session params N/A result N/A _parse_result N/A N/A getattr self methodname full_params N/A N/A result _RECONNECT_AND_RETRY N/A N/A retry_count 1 N/A N/A self last_login_method N/A N/A N/A N/A self _login N/A self last_login_method N/A self last_login_params N/A N/A N/A N/A xmlrpclib Fault 401 You must log in N/A N/A result N/A N/A N/A xmlrpclib Fault 500 Tried 3 times to get a valid session, but failed N/A _login N/A N/A self method params N/A N/A N/A result N/A _parse_result N/A N/A getattr self N/A session.%s method params N/A N/A result _RECONNECT_AND_RETRY N/A N/A N/A N/A xmlrpclib Fault 500 Received SESSION_INVALID when logging in N/A N/A self _session result N/A N/A self last_login_method method N/A N/A self last_login_params params N/A N/A self API_version N/A N/A self _get_api_version N/A _logout N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self last_login_method startswith slave_local N/A N/A N/A _parse_result N/A N/A N/A self session local_logout N/A self _session N/A N/A N/A _parse_result N/A N/A N/A self session logout N/A self _session N/A N/A N/A self _session None N/A N/A self last_login_method None N/A N/A self last_login_params None N/A N/A self API_version API_VERSION_1_1 N/A _get_api_version N/A N/A self N/A N/A N/A pool N/A N/A N/A N/A N/A self xenapi pool get_all N/A 0 N/A host N/A N/A N/A N/A self xenapi pool get_master pool N/A major N/A N/A N/A N/A self xenapi host get_API_version_major host N/A minor N/A N/A N/A N/A self xenapi host get_API_version_minor host N/A N/A %s.%s N/A major minor N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name handle N/A N/A N/A self _session N/A N/A N/A name xenapi N/A N/A N/A _Dispatcher N/A self API_version N/A self xenapi_request None N/A N/A N/A N/A N/A name startswith login N/A N/A name startswith slave_local N/A N/A N/A N/A N/A N/A params N/A N/A self _login name params N/A N/A N/A N/A N/A N/A socket setdefaulttimeout N/A N/A config getint server timeout N/A N/A N/A N/A xmlrpclib ServerProxy __getattr__ self name N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A xapi_local N/A N/A N/A N/A N/A N/A Session http://_var_xapi_xapi/ transport N/A UDSTransport N/A _parse_result N/A N/A result N/A N/A N/A N/A N/A N/A type result dict N/A Status result N/A N/A N/A N/A xmlrpclib Fault 500 N/A Missing Status in response from server result N/A N/A N/A result N/A Status Success N/A N/A N/A Value result N/A N/A N/A result N/A Value N/A N/A N/A N/A xmlrpclib Fault 500 Missing Value in response from server N/A N/A N/A ErrorDescription result N/A N/A N/A N/A N/A result N/A ErrorDescription N/A 0 SESSION_INVALID N/A N/A _RECONNECT_AND_RETRY N/A N/A N/A Failure N/A result N/A ErrorDescription N/A N/A N/A N/A xmlrpclib Fault 500 Missing ErrorDescription in response from server N/A _Dispatcher N/A N/A __init__ N/A N/A self API_version send name N/A N/A N/A N/A self __API_version API_version N/A N/A self __send send N/A N/A self __name name N/A __repr__ N/A N/A self N/A N/A N/A N/A self __name N/A N/A N/A <XenAPI._Dispatcher for %s> N/A self __name N/A N/A <XenAPI._Dispatcher> N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A self __name None N/A N/A N/A _Dispatcher N/A self __API_version N/A self __send name N/A N/A name N/A %s.%s N/A N/A self __name name N/A N/A _Dispatcher N/A self __API_version N/A self __send name N/A __call__ N/A N/A self N/A args N/A N/A N/A N/A self __send N/A self __name args N/A N/A