Get Location Aliases
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/locationaliases
Gets details about location aliases defined on the database.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
applicationName: string
Location alias target application name.
-
databaseName: string
Location alias target database name.
-
limit: integer(int32)
Maximum number of location aliases to return.
-
offset: integer(int32)
Number of items to omit from the start of the result set.
-
serverName: string
Location alias target server name.
Response
- application/json
- application/xml
200 Response
OK
Location aliases returned successfully.
object
-
aliasName:
string
Name of the location alias.
-
applicationLevelConnection:
boolean
If the location alias is based on a saved connection, this parameter should be true if the connection is application-level, or false if the connection is globally defined.
-
applicationName:
string
Application name for the database/cube to which the location alias refers.
-
connectionName:
string
If the location alias is based on a saved connection, the name of the connection.
-
databaseName:
string
Name of the database to which the location alias refers.
-
links:
array links
-
serverName:
string
If the location alias is not based on a saved connection, the Essbase Server host name of the database/cube to which the location alias refers.
-
userName:
string
If the location alias is not based on a saved connection, the name of a user who is authorized to log in to serverName. Optional if both cubes are on the same Essbase Server.
400 Response
Bad Request
Failed to get location alias details.
500 Response
Internal Server Error.
Examples
The following example shows how retrieve information about location aliases defined on the 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
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/locationaliases?links=none" -H "Accept:application/json" -u %User%:%Password%
Example of Response Body
{
"items" : [ {
"aliasName" : "EasternDB",
"serverName" : "https://myserver.example.com:9001/essbase/agent",
"userName" : "",
"applicationName" : "Eastern",
"databaseName" : "Sales",
"applicationLevelConnection" : false
} ],
"totalResults" : 1,
"limit" : 1,
"count" : 1
}