Get Filter Rows
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/filters/{filterName}/rows
Returns the access definition rows from the specified filter.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
filterName(required): string
Filter name.
Response
- application/json
- application/xml
200 Response
OK
Filter rows were retrieved successfully.
400 Response
Bad Request
Failed to get filter rows. The application name, database name, or filter name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to use Essbase REST API to retrieve the access definition details of a named security filter. The filter's row contents define the access details.
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/Efficient/databases/UserFilters/filters/dslookupfilter/rows?links=none" -H "Accept: application/json" -u %User%:%Password%
Example of Response Body
{
"items" : [ {
"access" : "MetaRead",
"mbrSpec" : "@datasourceLookup(\"EFFICIENT.UserDetails\",\"USERNAME\",$loginUser, \"COUNTRY\")"
}, {
"access" : "MetaRead",
"mbrSpec" : "@datasourceLookup(\"EFFICIENT.UserDetails\",\"USERNAME\",$loginUser, \"BUSINESSUNIT\")"
}, {
"access" : "MetaRead",
"mbrSpec" : "@datasourceLookup(\"EFFICIENT.UserDetails\",\"USERNAME\",$loginUser, \"COSTCENTER\")"
} ]
}