Cisco Cisco Evolved Programmable Network Manager 1.2 Developer's Guide

Page of 360
 
                                                          Using Paging
 
 
Cisco EPNM RESTConf  NBI  Guide  
 
 
 
357 
10 Using 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/v1/data/epnm-restconf-xmp-im-ext-
managedelement:ManagedElement?.firstIndex=0&.maxCount=4
 
or 
 
https://<server_name>/restconf/v1/data/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/v1/data/epnm-restconf-xmp-im-ext-
managedelement:ManagedElement?.firstIndex=4&.maxCount=4