Description

Use this to terminate an ABL session in an agent. You can use one of the following options:
  • 0—For trappable stop.
  • 1—For untrappable stop.
  • 2—For finishing the current request and then terminate the session.

HTTP Operation

DELETE

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/sessions/{sessionID}
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 Successfully terminated ABL Session
500 Could not terminate ABL Session 

Command-line example

curl -X DELETE -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/sessions/4?terminateOpt={0|1|2}

ABL HTTP client example

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

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

Request body example

NA

Response body example

{
  "operation": "TERMINATE ABL SESSION",
  "outcome": "SUCCESS",
  "result": true,
  "errmsg": "",
  "versionStr": "v12.7.0 ( 2023-04-20 )",
  "versionNo": 1
}