Description

Query an ABL application to get a list of all its sessions including information on client and agent connections.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/sessions

Media type

application/vnd.progress+json

Response codes

200 Success
404 Resource Not Found
500 Unexpected Server Error

Command-line example

curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/sessions

ABL HTTP client example

define variable resp as OpenEdge.Net.HTTP.IHttpResponse.

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Get('http://localhost:16680/oemanager/applications/oepas1/sessions')
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body example

{
"operation":"GET CLIENT SESSIONS",
"result":
    {
    "OEABLSession":
    [
        {
         "elapsedTimeMs":3343,
         "bound":false,
         "requestState":
         "RUNNING","requestID":"",
         "agentConnInfo":
             {
             "state":"RESERVED",
             "localAddr":"\/127.0.0.1:60464",
             "agentID":"AG-\/5vs3eApTMiPV5M+W47T3w",
             "connID":"AC-nRJgbuKtSNWcy6YWQknTbg",
             "connPoolID":"CP-30BInu3FRwOGQB0u0LwJ\/g",
             "agentAddr":"localhost\/127.0.0.1:62004"},
             "ablSessionID":"5",
             "sessionState":"RESERVED",
             "agentID":"AG-\/5vs3eApTMiPV5M+W47T3w",
             "clientConnInfo":
                 {
                 "elapsedTimeMs":5214,
                 "requestProcedure":"ngasPing.p",
                 "requestUrl":"http:\/\/localhost:16680\/apsv",
                 "clientName":"172.21.75.148",
                 "httpSessionId":"732277EE12485DDEC3A937DD30D7EF3267B3FE669C76.pas1",
                 "executerThreadId":"catalina-exec-8",
                 "reqStartTimeStr":"2014-09-17T08:41:48.138-0400",
                 "requestID":"ngasPing.p",
                 "adapterType":"HTTP",
                 "sessionID":"Iphz68lUQKexuHibyy6S+A"
                 },
             "adapterType":"HTTP",
             "sessionPoolID":"SP-RFplWI9\/Rta9j1pp+WcRyQ",
             "sessionID":"Iphz68lUQKexuHibyy6S+A",
             "sessionType":"SESSION_MANAGED",
             "lastAccessStr":"2014-09-17T08:41:50.006-0400"
        }
    ]
    },
    "outcome":"SUCCESS",
    "errmsg":"",
    "versionStr":"PASOE 11.5.0",
    "versionNo":1
}

Note: For more information about session states, see About session and request states in Manage Progress Application Server (PAS) for OpenEdge.