List Generations

get

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/dimensions/{dimensionName}/generations

Returns all the generations of a dimension from the specified application and database.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK

Generations retrieved successfully, including links to get or edit each generation.

Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : GenerationLevelList
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
Nested Schema : GenerationLevel
Type: object
Show Source

400 Response

Bad Request

Failed to get the generations. The application, database, or dimension name may be incorrect.

500 Response

Internal Server Error.

Back to Top

Examples

The following example shows how to get all the generations of a dimension in an Essbase 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/databases/Basic/dimensions/Measures/generations?links=none" -H Accept:application/json -H Content-Type:application/json -u %User%:%Password%

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
  "items" : [ {
    "name" : "Gen1",
    "actualName" : "",
    "number" : 1
  }, {
    "name" : "Gen2",
    "actualName" : "",
    "number" : 2
  }, {
    "name" : "Gen3",
    "actualName" : "",
    "number" : 3
  }, {
    "name" : "Gen4",
    "actualName" : "",
    "number" : 4
  } ]
}
Back to Top