Start or Stop Database
put
/applications/{applicationName}/databases/{databaseName}
Performs specified action on the application and database. Valid actions are Start and Stop.
Request
Path Parameters
-
applicationName(required):
Application name.
-
databaseName(required):
Database name.
Query Parameters
-
action(required):
Action - start or stop.
Response
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%