Start or Stop Database
put
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}
Performs specified action on the application and database. Valid actions are Start and Stop.
Request
Path Parameters
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
Query Parameters
-
action(required): string
Action - start or stop.
Response
Supported Media Types
- application/json
- application/xml
200 Response
OK
Action performed successfully.
400 Response
Bad Request
Failed to perform action.
500 Response
Internal Server Error.
Examples
The following example shows how to start or stop an Essbase database (cube).
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 - Start Database
call properties.bat
curl -X PUT "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic?action=start" -H "Accept:application/json" -u %User%:%Password%
Script with cURL Command - Stop Database
call properties.bat
curl -X PUT "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic?action=stop" -H "Accept:application/json" -u %User%:%Password%