Cisco Cisco Prime Performance Manager 1.5 Guide Du Développeur
Cisco Prime Performance Manager1.5 REST API Guide
<reportDataItem>100.0</reportDataItem>
<reportDataItem>0.0</reportDataItem>
</reportDataItems>
</reportData>
</report>
<reportDataItem>0.0</reportDataItem>
</reportDataItems>
</reportData>
</report>
7 Pagination
The reports retrieved from the REST API has an upper limit set to 1000 records per page unless modified
by the “maxPageSize” parameter. If a report has more than 1000 records (or the “maxPageSize”),
the report is divided into pages. The first REST response contains the first 1000 records along with a
“Content-Range” header (refer to HTTP Response Headers section of this document).
by the “maxPageSize” parameter. If a report has more than 1000 records (or the “maxPageSize”),
the report is divided into pages. The first REST response contains the first 1000 records along with a
“Content-Range” header (refer to HTTP Response Headers section of this document).
When the report is broken into multiple pages, use the “pageIndex” parameter to navigate to the next
pages. The “Content-Range” HTTP header value provides the current page number and number of pages
the report contains.
pages. The “Content-Range” HTTP header value provides the current page number and number of pages
the report contains.
The following table shows a report sample that displays the “pageIndex” request parameter set to page
number “3”. The “Content-Range” header response displays page number 3 of 8 pages total.
number “3”. The “Content-Range” header response displays page number 3 of 8 pages total.
Table 47 - CSV Request / Response Sample Showing Pagination (Content-Range Header)
Request
GET
/ppm/rest/reports/Availability/Interfaces/Interface++Availability?
pageIndex=3
HTTP/1.1
Host: ppm-clean.cisco.com:4440
Response – Notice the “Content-Range” header indicating pagination.
HTTP/1.1 206 Partial Content
Transfer-Encoding: chunked
Date: Fri, 05 Oct 2012 21:08:04 GMT
Content-Type: text/csv;charset=UTF-8
Server: Apache-Coyote/1.1
Host: ppm-clean.cisco.com:4440
Response – Notice the “Content-Range” header indicating pagination.
HTTP/1.1 206 Partial Content
Transfer-Encoding: chunked
Date: Fri, 05 Oct 2012 21:08:04 GMT
Content-Type: text/csv;charset=UTF-8
Server: Apache-Coyote/1.1
Content-Range: pages 3/8
Cache-Control: no-cache
Device,Interface,Timestamp,Interface Index,Interface Availability Percentage
Down,Interface Availability Percentage Up,Interface Availability Percentage
Timeout
SimLab-30.4.1.25,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.54,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.81,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.120,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.49,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.96,My_ifDescr_string,2012-10-05T16:00-0400,3,0.0,100.0,0.0
SimLab-30.4.1.223,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.223,My_ifDescr_string,2012-10-05T16:00-0400,3,0.0,100.0,0.0
SimLab-30.4.1.91,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,3,0.0,100.0,0.0
Down,Interface Availability Percentage Up,Interface Availability Percentage
Timeout
SimLab-30.4.1.25,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.54,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.81,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.120,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.49,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.96,My_ifDescr_string,2012-10-05T16:00-0400,3,0.0,100.0,0.0
SimLab-30.4.1.223,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,2,0.0,100.0,0.0
SimLab-30.4.1.223,My_ifDescr_string,2012-10-05T16:00-0400,3,0.0,100.0,0.0
SimLab-30.4.1.91,My_ifAlias_string-My_ifDescr_string,2012-10-05T16:00-
0400,3,0.0,100.0,0.0