Obtains the list of currently active sessions.

 

Request

Method

URL

POST

/smserver-default/sms.GetSession

RAW

POST /smserver-default/sms.GetSession HTTP/1.1

Cache-Control: no-cache

Connection: Keep-Alive

Pragma: no-cache

Content-Type: application/json; charset=UTF-8

Accept: */*

Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

 

[

 {

   "nodes" : [

               "Z5ENP7AZMPRERDQHUEWBSICAKI",

               "NPFS3SNTFBLUVFJNCLUZPUEB4E"

             ]

 }

]

Explained

Used to retrieve the list of all current client sessions connected to each of the specified nodes.

 

nodes: JSON array containing all nodes we are requesting the session list for (at least one)

 

Response

Method

URL

RAW

Accept-Encoding: synlz,gzip

Content-Type: application/json; charset=UTF-8

 

 

{"result":[

[

       {

           "ID" : "SLTWTDNM7CFEPDSM3Q54LQVK5Q.KKD24ZMGEWETF2AEBXW2XRSG4",

           "Started" : "2016-02-01T08:36:05",

           "RemIP" : "195.206.20.114",

           "User" : "smserver2",

           "Proto" : "FTPES",

           "Client" : "FileZilla",

           "LastCmd" : "PWD ",

           "LastCmdTS" : "2016-02-01T08:51:43",

           "KBUp" : 0,

           "KBDn" : 0

       }

   ]

],"id":772674711}

Explained

JSON array containing all the currently active sessions for the requested nodes.

 

ID: session ID

Started: timestamp (in UTC) representing the beginning of the session (when the client first connected)

RemIp: remote IP address of the client

User: username of the logged-in user

Proto: protocol

Client: name/version of the connected client (if available/known)

LastCmd: last command issued by the client

LastCmdTS: timestamp of the last command

KBup: uploaded KBytes (so far)

KbDown: downloaded KBytes (so far)