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
-
application(required): string
Application name.
-
database(required): string
Database name.
Response
Supported Media Types
- application/json
- application/xml
200 Response
OK
List of MDX reports returned successfully.
Nested Schema : QueryMetadata
Type:
Show Source
object
-
links:
array links
-
name:
string
-
type:
string
Allowed Values:
[ "MDX", "DATA_SOURCE" ]
400 Response
Bad Request
Failed to get MDX reports.
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
}