Get Descendants Count
/essbase/rest/v1/outline/{app}/{cube}/descendantsCount/{memberUniqueName}
Returns descendants count for the requested member.
Request
-
app(required): string
Application name.
-
cube(required): string
Database name.
-
memberUniqueName(required): string
Unique member name (fully qualified name).
-
applicationNameForConnection: string
Application name for connection.
-
connection: string
Essbase connection name.
Response
- text/plain
200 Response
OK
Descendants count returned successfully.
integer(int32)
400 Response
Bad Request
Failed to get descendants count.
500 Response
Internal Server Error.
Examples
The following example shows how to get the number of descendants a specified Essbase member has.
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/outline/ASOSamp/Basic/descendantsCount/Products?links=none" -H Accept:text/plain -o prodcount.txt -u %User%:%Password%
Example of Response Body
The following information is written to prodcount.txt
:
37