Get Calculation Settings
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/settings/calculation
Returns calculation settings of the specified database.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
Response
- application/json
- application/xml
200 Response
OK
Calculation settings retrieved successfully.
object
-
aggregateMissingValues:
boolean
If true, aggregate #MISSING values along with the regular cube consolidation. The default is false (missing values are not aggregated).
-
createBlocksOnEquations:
boolean
Force creation of data blocks on constant assignment calc equations (only valid for sparse dimensions). If true, blocks are created.
-
twoPassCalculation:
boolean
Force two pass calculation when running a full calculation (true if two pass calculation is enabled)
400 Response
Bad Request
Failed to get the calculation settings. The application or database name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to get calculation settings for a 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
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample_Dynamic/databases/Basic/settings/calculation" -H "accept: application/json" -u %User%:%Password%
Example of Response Body
{
"calculation": {
"aggregateMissingValues": false,
"createBlocksOnEquations": false,
"twoPassCalculation": false
}
}