Cisco Unity Connection Provisioning Interface (CUPI) API -- Getting the Object Count Without Getting the Objects
From DocWiki
Links to Other API pages: Cisco_Unity_Connection_APIs
| CUPI Guide Contents |
| API Overview Index of All CUPI Documentation |
Contents |
Getting the Object Count Without Getting the Objects
For performance reasons, you can retrieve an object count without retrieving the objects. For example, you might have over 1000 users and you want to know the exact user count. To speed up the query, you can retrieve only the count of users, without retrieving the payload, by using and setting the query parameter "pageNumber" or "rowsPerPage" to 0, as follows:
Examples
The following example returns the number of users:
GET http://<connection-server>/vmrest/users?rowsPerPage=0
The following example returns the number of users whose alias starts with "John":
GET http://<connection-server>/vmrest/users?query=(alias%20startswith%20John)&pageNumber=0