cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
943
Views
0
Helpful
3
Replies

How to provide offset and limit while listing users on unity connection

peboddu
Cisco Employee
Cisco Employee

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

1 Accepted Solution

Accepted Solutions

will.alvord
Level 5
Level 5

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:

  • rowsPerPage: Indicates how many objects to return in a single query.
  • pageNumber: Indicates which page of objects to return.

For example:

GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=1
GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=2

 

View solution in original post

3 Replies 3

will.alvord
Level 5
Level 5

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:

  • rowsPerPage: Indicates how many objects to return in a single query.
  • pageNumber: Indicates which page of objects to return.

For example:

GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=1
GET http://<connection-server>/vmrest/users?rowsPerPage=100&pageNumber=2

 

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.

 

 

 

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.