Delete All Sessions
/essbase/rest/v1/sessions
Deletes all the sessions currently active, or kills all the requests currently processing.
Request
-
application: string
Application name.
-
database: string
Database name.
-
disconnect: boolean
Disconnect value (Boolean). If false, the request is killed. Otherwise, the session is logged off.
Default Value:false
-
userId: string
User ID.
Response
- application/json
- application/xml
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%