Description

Get a list of all the PAS for OpenEdge multi-session agents available to an ABL application.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/agents 

Media type

application/vnd.progress+json 

Response codes

200 Success
500 Unexpected Server Error

Command-line example

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

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/agents')
      :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body example

{
   "operation":"GET AGENTS",
   "outcome":"SUCCESS",
   "result":{
      "agents":[
         {
            "agentId":"W9UI_6dJQ-qSsk-o25mWAw",
            "pid":"1144",
            "state":"AVAILABLE"
         }
      ]
   },
   "errmsg":"",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}