Bug 928313 - [RHEVM-SDK-PYTHON]: Implement Session-TTL header support
Summary: [RHEVM-SDK-PYTHON]: Implement Session-TTL header support
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.2.0
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 928314
TreeView+ depends on / blocked
 
Reported: 2013-03-27 11:35 UTC by Michael Pasternak
Modified: 2016-02-10 19:05 UTC (History)
8 users (show)

Fixed In Version: sf14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 13979 0 None None None Never
oVirt gerrit 14029 0 None None None Never

Description Michael Pasternak 2013-03-27 11:35:13 UTC
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

Comment 1 Ilia Meerovich 2013-05-13 12:32:50 UTC
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)

Comment 2 Itamar Heim 2013-06-11 08:38:30 UTC
3.2 has been released

Comment 3 Itamar Heim 2013-06-11 08:38:30 UTC
3.2 has been released

Comment 4 Itamar Heim 2013-06-11 08:38:38 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 08:46:29 UTC
3.2 has been released


Note You need to log in before you can comment on or make changes to this bug.