Pagination Support?

Version 1
    This document was generated from CDN thread

    Created by: Layne Hoo on 29-09-2010 03:30:28 PM
    The WIKI FAQ suggests pagination for querying users is supported:
     
    http://developer.cisco.com/web/cupi/wikidocs/-/wiki/Main/Frequently%20Asked%20Questions#section-Frequently+Asked+Questions-IsThereSupportForPaging
     
    e.g. GET http://<connection-server>/vmrest/users?rowsPerPage=100&page=1
     
    But this doesn't seem to work on 7.1.3, 7.1.5, or 8.0.  
     
    On a system with less than 10 users, GET http://<connection-server>/vmrest/users?rowsPerPage=1&page=1 and GET http://<connection-server>/vmrest/users?rowsPerPage=1&page=2 both return the same result, which is the first user
     
    Also, with 2500+ user system, GET http://<connection-server>/vmrest/users?rowsPerPage=100&page=1 and GET http://<connection-server>/vmrest/users?rowsPerPage=100&page=2 and  GET http://<connection-server>/vmrest/users?rowsPerPage=100&page=3 all return the same result, which begins with the first user
     
    Is this a known bug and/or is there a workaround?  
     
    Also, for a system of say 100 users, what would be the expected result of:  GET http://<connection-server>/vmrest/users?rowsPerPage=100&page=2
     
    Should it return an empty set?
     
    Thank you in advance...

    Subject: RE: Pagination Support?
    Replied by: PATRICK NOWICKI on 06-10-2010 10:02:39 PM
    Hi Layne,
    Thanks for your post, it actually helped me with an issue I was having. To answer your question, I found that if you use the parameter "pageNumber" instead of "page" in your url, it works for me.
    So:
    GET [url=http://<connection-server>/vmrest/users?rowsPerPage=1&pageNumber=1]http://<connection-server>/vmrest/users?rowsPerPage=1&pageNumber=1
     
    Once you get past the valid data, I basically get a blank response.
    In my case it was:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Mwis/>
     
    Hope that helps you out.
    -Patrick

    Subject: RE: Pagination Support?
    Replied by: Layne Hoo on 07-10-2010 03:39:04 PM
    Thanks Patrick - 
     
    Yes, that seemed to do the trick!   
     
    Very much appreciated,
     
    Layne