Get Descendants Count
get
/essbase/rest/v1/outline/{app}/{cube}/descendantsCount/{memberUniqueName}
Returns descendants count for the requested member.
Request
Path Parameters
-
app: string
Application name.
-
cube: string
Database name.
-
memberUniqueName: string
Unique member name (fully qualified name).
Query Parameters
-
applicationNameForConnection(optional): string
Application name for connection.
-
connection(optional): string
Essbase connection name.
Response
Supported Media Types
- text/plain
200 Response
OK
Descendants count returned successfully.
Root Schema : schema
Type:
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