Description

Updates the in-memory maximum ABL Sessions per agent (dynmaxablsessions) to the specified {sessionLimit}.

HTTP Operation

POST

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/dynamicSessionLimit/{sessionLimit}
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.
{sessionLimit}
The integer to set as the value of the in-memory dynmaxablsessions. This number cannot exceed the configured number of ABL sessions per agent (maxABLSessionsPerAgent) in openedge.properties.

Media type

application/vnd.progress+json

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X POST -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/1144/dynamicSessionLimit/100

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/agents/1144/dynamicSessionLimit/100')
      :ContentType('application/vnd.progress+json') 
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body example

{
   "operation":"SetDynamicABLSessionLimit",
   "outcome":"SUCCESS",
   "result":{
      "AgentSessionInfo":[
         {
            "ABLOutput":{
               "numABLSessions":2,
               "numAvailableSessions":2,
               "dynmaxablsessions":100
            },
            "ABLReturnVal":true,
            "agentId":"iDpJxd-FTmyZ7CnX0IJpMw",
            "pid":"10291"
         }
      ]
   },
   "errmsg":"",
   "versionStr":"v12.2.0 ( 2019-12-18 )",
   "versionNo":1
}