07-21-2015 09:09 PM - edited 03-13-2019 09:04 PM
Hi ,
To get the list of users on Unity Connection , GET call is made to http://{server name}/vmrest/users.
But above API is returning all the users in a single go . Can arguments like limit and offset can be provided to above API so that we can make mutiple calls and can get user data in chunks.
Does this API support that kind of behavior or is there any other API , where can get user data in chunks.
Thanks,
Penchal
Solved! Go to Solution.
07-23-2015 09:18 AM
The CUPI docs are here: http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Index_of_All_CUPI_Documentation
At the bottom of the page, follow the link for "FAQs". Question 6 is "Is there support for paging?". Not trying to be snarky or anything here. Just pointing out that the documentation is excellent.
Yes. Paging is supported via two query parameters:
For example:
GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=1 GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=2
07-23-2015 09:18 AM
The CUPI docs are here: http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Provisioning_Interface_(CUPI)_API_--_Index_of_All_CUPI_Documentation
At the bottom of the page, follow the link for "FAQs". Question 6 is "Is there support for paging?". Not trying to be snarky or anything here. Just pointing out that the documentation is excellent.
Yes. Paging is supported via two query parameters:
For example:
GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=1 GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=2
07-23-2015 12:05 PM
Thanks a lot. Its working perfectly fine.
GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=1
Above API is showing up lot of data related to user.
Is there any way we get only the Alias and DtmfAccessId.?
Is there anyway we can specify the tags that we want in output.
07-24-2015 09:13 AM
I haven't seen any means of doing that, and agree that there is quite a bit of user data and you'll rarely be interested in all of it. You'll have to just ignore any of that extra data that you're not concerned with.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide