KRON PAM API Collection v3.7.0
Active Session Management
List Active Sessions
1 min
code examples curl location globoff '{{url}}/aioc rest web/rest/sc/policy/advancedsearchactivesessions' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x xsrf token {{csrftoken}}' \\ \ data '"{\\"advancedsearchinput\\"\ null,\\"firstresult\\" 0,\\"maxresult\\" 10}"'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x xsrf token", "{{csrftoken}}"); var raw = json stringify("{\\"advancedsearchinput\\"\ null,\\"firstresult\\" 0,\\"maxresult\\" 10}"); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("{{url}}/aioc rest web/rest/sc/policy/advancedsearchactivesessions", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("{{url}}/aioc rest web/rest/sc/policy/advancedsearchactivesessions") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x xsrf token"] = "{{csrftoken}}" request body = json dump("{\\"advancedsearchinput\\"\ null,\\"firstresult\\" 0,\\"maxresult\\" 10}") response = http request(request) puts response read body import requests import json url = "{{url}}/aioc rest web/rest/sc/policy/advancedsearchactivesessions" payload = json dumps("{\\"advancedsearchinput\\"\ null,\\"firstresult\\" 0,\\"maxresult\\" 10}") headers = { 'accept' 'application/json', 'content type' 'application/json', 'x xsrf token' '{{csrftoken}}' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses \[ { "dbid" 4828186, "sessionid" "9c2b988a 0b19 4fc1 816e c0ef92eb6575", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737359082345, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "reasonforconnection" null, "tenantid" null, "approvalid" null, "agentid" null, "idleduration" null, "command4search" null, "devicegroups4search" null, "recordlimit4search" null, "videoavailability" null, "sessionaudits" \[], "sessionaudit" null, "remoteappname" null, "remoteappuser" null, "remoteappdeviceip" null, "isexactmatch4search" null, "isjobops" null, "hashinfo" null, "hashdate" null, "tamperproof" null, "ocrenabledfordevice" null, "filterexacthost" null, "userfullname" "test test", "status" null, "firstresult" null, "maxresult" null, "tamperproofcheckenabled" null, "currenttamperprooflogversion" "v2", "negativeusername4search" false, "negativehost4search" false, "negativedevicegroup4search" false, "syslogmap" { "sessionid" "9c2b988a 0b19 4fc1 816e c0ef92eb6575", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "tenantid" null, "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737359082345, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "totalduration" 1, "idleduration" null, "remoteapplicationname" null }, "allowed4search" null }, { "dbid" 4828142, "sessionid" "65c2b207 7b12 4a91 8d72 0526b1ea33a1", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737359053520, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "reasonforconnection" null, "tenantid" null, "approvalid" null, "agentid" null, "idleduration" null, "command4search" null, "devicegroups4search" null, "recordlimit4search" null, "videoavailability" null, "sessionaudits" \[], "sessionaudit" null, "remoteappname" null, "remoteappuser" null, "remoteappdeviceip" null, "isexactmatch4search" null, "isjobops" null, "hashinfo" null, "hashdate" null, "tamperproof" null, "ocrenabledfordevice" null, "filterexacthost" null, "userfullname" "test test", "status" null, "firstresult" null, "maxresult" null, "tamperproofcheckenabled" null, "currenttamperprooflogversion" "v2", "negativeusername4search" false, "negativehost4search" false, "negativedevicegroup4search" false, "syslogmap" { "sessionid" "65c2b207 7b12 4a91 8d72 0526b1ea33a1", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "tenantid" null, "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737359053520, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "totalduration" 1, "idleduration" null, "remoteapplicationname" null }, "allowed4search" null }, { "dbid" 4827283, "sessionid" "657f1453 a4c1 4a3e b094 8c6e02c5dd1e", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737357272465, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "reasonforconnection" null, "tenantid" null, "approvalid" null, "agentid" null, "idleduration" null, "command4search" null, "devicegroups4search" null, "recordlimit4search" null, "videoavailability" null, "sessionaudits" \[], "sessionaudit" null, "remoteappname" null, "remoteappuser" null, "remoteappdeviceip" null, "isexactmatch4search" null, "isjobops" null, "hashinfo" null, "hashdate" null, "tamperproof" null, "ocrenabledfordevice" null, "filterexacthost" null, "userfullname" "test test", "status" null, "firstresult" null, "maxresult" null, "tamperproofcheckenabled" null, "currenttamperprooflogversion" "v2", "negativeusername4search" false, "negativehost4search" false, "negativedevicegroup4search" false, "syslogmap" { "sessionid" "657f1453 a4c1 4a3e b094 8c6e02c5dd1e", "username" "sqlproxy", "userid" "5801ea43 a1c4 4553 ab6e 720eb206938f", "tenantid" null, "host" "10 20 42 35", "hostname" "oracle 12 1 new", "starttime" 1737357272465, "endtime" null, "globalusername" null, "clientip" "10 20 42 57", "instancename" "ceydauluturk", "accessprotocol" "oracle tns", "totalduration" 1, "idleduration" null, "remoteapplicationname" null }, "allowed4search" null } ]