[Engine-devel] about session_timeout in API

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_009C_01CE645D.9F2C74B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, all: What's meaning of session_timeout in ovirt-engine-sdk-python API, ------=_NextPart_000_009C_01CE645D.9F2C74B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:\5B8B\4F53; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@\5B8B\4F53"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"\6279\6CE8\6846\6587\672C Char"; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:9.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.Char {mso-style-name:"\6279\6CE8\6846\6587\672C Char"; mso-style-priority:99; mso-style-link:\6279\6CE8\6846\6587\672C;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple = style=3D'text-justify-trim:punctuation'> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US>Hi, all:<o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> = What’s meaning of session_timeout in ovirt-engine-sdk-python = API,<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> </div> </body> </html> ------=_NextPart_000_009C_01CE645D.9F2C74B0--

On 06/08/2013 10:34 AM, wlbleaboy@126 wrote:
Hi, all:
What’s meaning of session_timeout in ovirt-engine-sdk-python API,
[@param session_timeout: authentication session timeout (if persistent_auth is enabled)] p.s you can find this in __doc__ under API.__init__
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Yes, I saw that you assigned, because I'm not familiar with python, so , I want to know that's It's specific meaning, what's the meaning of that argument used for API.__init__() -----Original Message----- From: Michael Pasternak [mailto:mpastern@redhat.com] Sent: Sunday, June 09, 2013 3:06 PM To: wlbleaboy@126 Cc: engine-devel@ovirt.org Subject: Re: [Engine-devel] about session_timeout in API On 06/08/2013 10:34 AM, wlbleaboy@126 wrote:
Hi, all:
What's meaning of session_timeout in ovirt-engine-sdk-python API,
[@param session_timeout: authentication session timeout (if persistent_auth is enabled)] p.s you can find this in __doc__ under API.__init__
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D

On 06/09/2013 10:30 AM, wlbleaboy@126 wrote:
Yes, I saw that you assigned, because I'm not familiar with python, so , I want to know that's It's specific meaning, what's the meaning of that argument used for API.__init__()
By default sdk uses persistent authentication [1], and to achieve that used http session, the default for the session idle state is 2 hours (IIRC) after that, if you'll try to perform any action, it will fail with 401 error, by changing session_timeout in the SDK, you can define your own session timeout. [1] you can switch off persistent authentication by making 'persistent_auth=False', but please note that then authentication will take place per sdk request.
-----Original Message----- From: Michael Pasternak [mailto:mpastern@redhat.com] Sent: Sunday, June 09, 2013 3:06 PM To: wlbleaboy@126 Cc: engine-devel@ovirt.org Subject: Re: [Engine-devel] about session_timeout in API
On 06/08/2013 10:34 AM, wlbleaboy@126 wrote:
Hi, all:
What's meaning of session_timeout in ovirt-engine-sdk-python API,
[@param session_timeout: authentication session timeout (if persistent_auth is enabled)]
p.s you can find this in __doc__ under API.__init__
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D
participants (2)
-
Michael Pasternak
-
wlbleaboy@126