Delete All Sessions
/sessions
Deletes all the sessions currently active or kills all the requests currently processing.
Request
-
application:
Application name.
-
database:
Database name.
-
disconnect:
Disconnect value (Boolean). If false, the request is killed. Otherwise, the session is logged off.
-
userId:
User ID.
Response
200 Response
1. Deletes all the sessions for the parameter 'application', 'database' and 'userid' provided. If no parameters are specified, deletes all active sessions.
2. Cannot disconnect user. Essbase Error(1051041): Insufficient privilege for this operation.
400 Response
Bad Request
Essbase or platform security exception.
500 Response
Internal Server Error.
Examples
The following example shows how to terminate all active user sessions on the Essbase Server.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat.
Script with cURL Command
call properties.bat
curl -X DELETE "https://myserver.example.com:9001/essbase/rest/v1/sessions?links=none" -H Accept:application/json -H Content-Type:application/json -u %User%:%Password%