Gets the number of sessions in the current server instance.
Syntax: GET /api/Session/GetSessionCount
PowerScript code example:
Integer li_rc String ls_body httpclient lhc_client lhc_client = create httpclient lhc_client.setrequestheader("Content-Type", "application/json;charset=UTF-8",true) li_rc = lhc_client.sendrequest( "GET", "http://172.25.100.32:5000/api/Session/GetSessionCount") if li_rc = 1 and lhc_client.getresponsestatuscode( ) = 200 then lhc_client.getresponsebody(ls_body) end if
When successful, it returns the number of sessions.
When failed, it returns 400 (bad request), 401 (unauthorized), or 500 (server error).