Description

Add a multi-session agent to an ABL application.

HTTP Operation

POST

URI

//host_name:port/oemanager/applications/ABL_app_name/addAgent

Media type

application/vnd.progress+json 

Response codes

200 Success
403 Access Denied
500 Unexpected Server Error

Command-line example

curl -X POST -u username:password -v http://localhost:16680/oemanager/applications/oepas1/addAgent

ABL HTTP client example

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

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
   :Execute(OpenEdge.Net.HTTP.RequestBuilder
      :Post('http://localhost:16680/oemanager/applications/oepas1/addAgent')
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body example

{
   "operation":"GET ABL OBJECTS REPORT",
   "outcome":"SUCCESS",
   "result":{
      "agentId":"Zi9XLdNfRwOWaDg3TGQHnQ",
      "pid":"11152",
      "state":"AVAILABLE"
   },
   "errmsg":"",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}