[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: PAS - Pick up new r-code

  • Thread starter Thread starter dbeavon
  • Start date Start date
Status
Not open for further replies.
D

dbeavon

Guest
Irfan, Here is the link to the documentation for the REST URL that you are probably referring to: OpenEdge 11.7 Documentation It allows the "Get" method to retrieve the list of sessions. Below is an example (powershell running against localhost): # Retrieve available agent sessions using abl app and agent id $response = Invoke-RestMethod -Method Get -Uri ('hppp://localhost:8815/oemanager/applications/abl_app/agents/sK3ZTaBVRb-Ds9Qn9ZD9Ug/sessions') -Credential $cred However this does not support the HTTP "Delete" method directly. The following fails with an error - 405 method not allowed: # Delete agent sessions (-Method Delete) $response = Invoke-RestMethod -Method Delete -Uri ('hppp://localhost:8815/oemanager/applications/abl_app/agents/sK3ZTaBVRb-Ds9Qn9ZD9Ug/sessions') -Credential $cred I believe the first HTTP request to get the sessions would need to be followed with another REST method which must be executed for every session: OpenEdge 11.7 Documentation Ideally it would be better if there were a way to directly call terminateFreeABLSessions via REST.

Continue reading...
 
Status
Not open for further replies.
Back
Top