<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API timeout does not function R81 API 1.7.1 in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140755#M6597</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for the answer&lt;/P&gt;&lt;P&gt;I have take 44 perhaps some issue there&lt;/P&gt;&lt;P&gt;In the GUI I can see the session during days and the default is still 600 .&lt;/P&gt;&lt;P&gt;Only when I close ( I kept the ID ), the session is closing.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 11:05:23 GMT</pubDate>
    <dc:creator>pepj</dc:creator>
    <dc:date>2022-02-07T11:05:23Z</dc:date>
    <item>
      <title>API timeout does not function R81 API 1.7.1</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140509#M6586</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;R81 API 1.7.1&lt;/P&gt;&lt;P&gt;Could someone confirm that it should function?&lt;/P&gt;&lt;P&gt;the API timeout does not function . ( on GUI timeout is OK )&lt;/P&gt;&lt;P&gt;The session return the default 600 see example below.&lt;/P&gt;&lt;P&gt;If I do not logout the session is still open after several days .... I have to close it properly with API.&lt;/P&gt;&lt;P&gt;Is it a bug ? Has anyone also this issue ?&lt;/P&gt;&lt;P&gt;Thank you for the feedback&lt;BR /&gt;Jean-Michel&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;curl -k -H 'Content-Type: application/json' -X POST &lt;A href="https://IP_SERVER/web_api/login" target="_blank" rel="noopener"&gt;https://IP_SERVER/web_api/login&lt;/A&gt; -d {"user":"MY_USER","password":"*****" }&lt;BR /&gt;% Total % Received % Xferd Average Speed Time Time Time Current&lt;BR /&gt;Dload Upload Total Spent Left Speed&lt;BR /&gt;^M 0 0 0 0 0 43 0 348 --:--:-- --:--:-- --:--:-- 348^M1... 47 --:--:-- --:--:-- --:--:-- 451^M1....47 --:--:-- --:--:-- --:--:-- 451{&lt;BR /&gt;"uid" : "060..MY_USER..3a9",&lt;BR /&gt;"sid" : "DZ7..MY_USER..wqE",&lt;BR /&gt;"url" : "&lt;A href="https://IP_SERVER:443/web_api" target="_blank" rel="noopener"&gt;https://IP_SERVER:443/web_api&lt;/A&gt;",&lt;BR /&gt;"session-timeout" : 600,&lt;BR /&gt;"last-login-was-at" : {&lt;BR /&gt;"posix" : 1643892248929,&lt;BR /&gt;"iso-8601" : "2022-02-03T13:44+0100"&lt;BR /&gt;},&lt;BR /&gt;"api-server-version" : "1.7.1",&lt;BR /&gt;"user-name" : "MY_USER",&lt;BR /&gt;"user-uid" : "df8MY_USER83"&lt;BR /&gt;}SID=DZ7..MY_USER...wqE&lt;/P&gt;&lt;P&gt;session still opened after days&lt;/P&gt;&lt;P&gt;MANUAL close via API&lt;/P&gt;&lt;P&gt;curl -k -H 'Content-Type: application/json' -H X-chkp-sid:DZ7..MY_USER...wqE -X POST '&lt;A href="https://IP_SERVER/web_api/logout" target="_blank" rel="noopener"&gt;https://IP_SERVER/web_api/logout&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"message" : "OK"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 13:41:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140509#M6586</guid>
      <dc:creator>pepj</dc:creator>
      <dc:date>2022-02-04T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: API timeout does not function R81 API 1.7.1</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140550#M6588</link>
      <description>&lt;P&gt;I'm running R81 jumbo 51 on this box, and the API authentication timeout appears to work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# clock;mgmt_cli -f json  -s session.txt show hosts limit 1 details-level uid | jq -c '.objects[]'
Fri Feb  4 18:25:57 2022  -0.829022 seconds
"f752bfcd-8194-4831-a8cf-16dabecbac73"
[Expert@DallasSA]# clock;mgmt_cli -f json  -s session.txt show hosts limit 1 details-level uid | jq -c '.objects[]'
Fri Feb  4 18:40:12 2022  -0.426969 seconds
jq: error: Cannot iterate over null
[Expert@DallasSA]# mgmt_cli -f json -s session.txt logout
{
  "code" : "generic_err_wrong_session_id",
  "message" : "Wrong session id [7u4LYX9CFvgi6o3VarVlM_DsNHgMczw-gXwuGoOESco]. Session may be expired. Please check session id and resend the request"
}
[Expert@DallasSA]# &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Feb 2022 18:45:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140550#M6588</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-02-04T18:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: API timeout does not function R81 API 1.7.1</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140562#M6590</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/28482"&gt;@pepj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you still see your old expired session with the following command?&lt;BR /&gt;# mgmt_cli show session --format json&lt;BR /&gt;&lt;BR /&gt;If necessary, you can extend the timeout with a keepalive.&lt;BR /&gt;# mgmt_cli&amp;nbsp; &lt;STRONG&gt;--conn-timeout 1200&lt;/STRONG&gt; ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 19:52:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140562#M6590</guid>
      <dc:creator>Tobias_L</dc:creator>
      <dc:date>2022-02-04T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: API timeout does not function R81 API 1.7.1</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140755#M6597</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for the answer&lt;/P&gt;&lt;P&gt;I have take 44 perhaps some issue there&lt;/P&gt;&lt;P&gt;In the GUI I can see the session during days and the default is still 600 .&lt;/P&gt;&lt;P&gt;Only when I close ( I kept the ID ), the session is closing.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 11:05:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-timeout-does-not-function-R81-API-1-7-1/m-p/140755#M6597</guid>
      <dc:creator>pepj</dc:creator>
      <dc:date>2022-02-07T11:05:23Z</dc:date>
    </item>
  </channel>
</rss>

