3.2 api introduced new header Session-TTL (bug 921013) which is used to define session TTL or disable it, sdk should allow users to use this feature
sf15: [imeerovi@imeerovi ART]$ ipython Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) Type "copyright", "credits" or "license" for more information. IPython 0.10 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: from ovirtsdk.xml import params In [2]: from ovirtsdk.api import API In [3]: print API.__init__.__doc__ ------> print(API.__init__.__doc__) @param url: server url (format "http/s://server[:port]/api") @param username: user (format user@domain) @param password: password [@param key_file: client PEM key_file for ssl enabled connection] [@param cert_file: client PEM cert_file for ssl enabled connection] [@param ca_file: server ca_file for ssl enabled connection] [@param port: port to use (if not specified in url)] [@param timeout: request timeout] [@param session_timeout: authentication session timeout (if persistent_auth is enabled)] [@param persistent_auth: enable persistent authentication (format True|False)] [@param insecure: signals to not demand site trustworthiness for ssl enabled connection (format True|False, default is False)] [@param validate_cert_chain: validate the server's certificate (format True|False, default is True)] [@param filter: signals if user permission based filtering should be turned on/off (format True|False)] [@param debug: debug (format True|False)] @raise NoCertificatesError: raised when CA certificate is not provided for SSL site (can be disabled using 'insecure=True' argument). @raise UnsecuredConnectionAttemptError: raised when HTTP protocol is used in url against server running HTTPS. @raise ImmutableError: raised on sdk < 3.2 when sdk initiation attempt occurred while sdk instance already exist under the same domain. @raise DisconnectedError: raised when sdk usage attempt occurred after it was explicitly disconnected. @raise MissingParametersError: raised when get() method invoked without id or name been specified. @raise ConnectionError: raised when any kind of communication error occurred. @raise RequestError: raised when any kind of oVirt server error occurred. @raise FormatError: raised when server replies in non-XML format. In [4]: api = API(url='https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/', username='admin@internal', password='123456', insecure=True, session_timeout=10)
3.2 has been released