List MDX Reports

get

/essbase/rest/v1/applications/{application}/databases/{database}/queries

List all the saved MDX reports for the specified cube.

An MDX report is saved in the cube context.

See also:

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK

List of MDX reports returned successfully.

Body ()
Root Schema : Queries
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
Nested Schema : QueryMetadata
Type: object
Show Source

400 Response

Bad Request

Failed to get MDX reports.

Back to Top

Examples

The following example shows how to retrieve the list of saved MDX reports associated with 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/queries?links=none" -H "Accept:application/json" -u %User%:%Password%

Example of Response Body

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

{
  "items" : [ {
    "name" : "closingperiod",
    "type" : "MDX"
  }, {
    "name" : "count",
    "type" : "MDX"
  }, {
    "name" : "lastperiods",
    "type" : "MDX"
  }, {
    "name" : "mdxreport05",
    "type" : "MDX"
  }, {
    "name" : "remainder",
    "type" : "MDX"
  }, {
    "name" : "value",
    "type" : "MDX"
  } ],
  "count" : 6,
  "totalResults" : 6
}
Back to Top