Cisco Cisco Evolved Programmable Network Manager 2.0 Developer's Guide

Page of 88
 
                                   Paging
 
 
Cisco Evolved Programmable Network Manager 2.0 RESTCONF NBI Guide  
 
 
 
85
 
10  Paging 
Paging lets you control the number of records returned by a request and page through 
the results. Paging is supported for all request types. 
 
To page results, use the .maxCount and .firstIndex parameters.  
 
Examples: 
a.  To get the first four results (results 0 to 3), you can use: 
 
https://<server_name>/restconf/data/v1/epnm-restconf-xmp-im-ext-
managedelement:ManagedElement?.firstIndex=0&.maxCount=4
 
or 
 
https://<server_name>/restconf/data/v1/epnm-restconf-xmp-im-ext-
managedelement:ManagedElement?.maxCount=4
 
b.  To get the next four results (results 4 to 7), you can use: 
 
https://<server_name>/restconf/data/v1/epnm-restconf-xmp-im-ext-
managedelement:ManagedElement?.firstIndex=4&.maxCount=4