Description

Get thread information of an agent of an ABL application.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/threads
Note: Agent PID (for example, 1144) or agent ID (for example, W9UI_6dJQ-qSsk-o25mWAw) can be used to identify the multi-session agent. Both values can be obtained using the List agents API.

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/39028/threads

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

Request body example

NA

Response body example

{
  "operation": "GET AGENT THREADS",
  "outcome": "SUCCESS",
  "result": {
    "AgentThread": [
      {
        "ThreadId": 4,
        "ThreadState": "IDLE",
        "StartTime": "2023-08-30T22:02:56.307+04:00",
        "EndTime": null
      },
      {
        "ThreadId": 7,
        "ThreadState": "IDLE",
        "StartTime": "2023-08-30T22:02:56.307+04:00",
        "EndTime": null
      }
    ]
  },
  "errmsg": "",
  "versionStr": "v12.7.0 ( 2023-04-20 )",
  "versionNo": 1
}
Note: For more information about ABL Agent Session states, see About session and request states.