Hello
R81 API 1.7.1
Could someone confirm that it should function?
the API timeout does not function . ( on GUI timeout is OK )
The session return the default 600 see example below.
If I do not logout the session is still open after several days .... I have to close it properly with API.
Is it a bug ? Has anyone also this issue ?
Thank you for the feedback
Jean-Michel
example:
curl -k -H 'Content-Type: application/json' -X POST https://IP_SERVER/web_api/login -d {"user":"MY_USER","password":"*****" }
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 43 0 348 --:--:-- --:--:-- --:--:-- 348^M1... 47 --:--:-- --:--:-- --:--:-- 451^M1....47 --:--:-- --:--:-- --:--:-- 451{
"uid" : "060..MY_USER..3a9",
"sid" : "DZ7..MY_USER..wqE",
"url" : "https://IP_SERVER:443/web_api",
"session-timeout" : 600,
"last-login-was-at" : {
"posix" : 1643892248929,
"iso-8601" : "2022-02-03T13:44+0100"
},
"api-server-version" : "1.7.1",
"user-name" : "MY_USER",
"user-uid" : "df8MY_USER83"
}SID=DZ7..MY_USER...wqE
session still opened after days
MANUAL close via API
curl -k -H 'Content-Type: application/json' -H X-chkp-sid:DZ7..MY_USER...wqE -X POST 'https://IP_SERVER/web_api/logout'
{
"message" : "OK"
}