Retrieving Session Information with the whoami Command

At any point, a user can retrieve their session information using the whoami command:

Example

GET https://192.168.2.1/api/whoami?token=F3852B53A74868B7927559151439F1AA

Status: HTTP/1.1 200 OK
{
    "code" : 200, 
    "result" : {       
        "address" : "192.168.2.103" ,
         "isipcuser" : false,
         "isremoteuser" : false,
             "permission" : "admin","port" : "59486",
             "timestamp" : "2:58:40:389",
             "token" : " B7083A0B14C0F0BEFFBED89B99EFBC ",
             "user" : "admin",
     },
     "status" : "success"  
}