Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

Using Paging

Paging lets you control the number of records returned by a request and page through the results. Check the documentation for each request type to see if it supports Paging.

To page results, use the .maxResults and .firstResult parameters.

For example ...

	/webacs/api/v1/data/Devices?.full=true&.firstResult=0&.maxResults=4

would get the first four results (0-3). And ..

	/webacs/api/v1/data/Devices?.full=true&.maxResults=4&.firstResult=4

would get the next four results (4-7).

The response contains information about the full result set and the paging that was used :

              	<queryResponse 
              		last="7" first="4" count="24"
              		type="Devices" 
              		rootUrl="https://ncs-nbi-demo-1/webacs/api/v1/data" 
              		requestUrl="https://ncs-nbi-demo-1/webacs/api/v1/data/Devices?.full=true&.maxResults=4&.first=4" 
              		responseType="listEntityInstances">
              		....