Cisco Cisco Prime Performance Manager 1.7 Developer's Guide
Cisco Prime Performance Manager 1.7 REST API Guide
<reportInfo>
<name>Video Broadcast</name>
<uri>http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Video+Broadcast/</uri>
</reportInfo>
</reports>
<name>Video Broadcast</name>
<uri>http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Video+Broadcast/</uri>
</reportInfo>
</reports>
6.3 GET Report
The GET API retrieves a specific network or node/group report from the Prime Performance Manager
server. The query string parameters (sgmid, startDate, endDate and FQDN) are used to constrain
the reporting data returned.
server. The query string parameters (sgmid, startDate, endDate and FQDN) are used to constrain
the reporting data returned.
Examples:
GET /reports/{category}../{reportName}
GET /reports/{category}../{reportName}?FQDN=Node=[some node]
GET /groupreports/{category}../{reportName}?FQDN=Group=[some group]
Following is a sample request for the Interface Availability network level report. If the Prime
Performance Manager server has SSL enabled, the HTTP Authorization header should be included.
Performance Manager server has SSL enabled, the HTTP Authorization header should be included.
Table 53 – HTTP Report Request Sample – “Interface Availability” Network Level Report
HTTP Request Sample – “Interface Availability” Network Level Report
GET /ppm/rest/reports/Availability/Interfaces/Interface++Availability
HTTP/1.1
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
HTTP/1.1
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
6.4 Report Samples
The following samples were collected from a Cisco development server to illustrate the data structure of
the different data format types: XML, JSON, and CSV. The data provided by your server will likely be
different. The sample reports might only show a subset of the report. The report uses “. . .” to indicate
that further data is available but not displayed.
the different data format types: XML, JSON, and CSV. The data provided by your server will likely be
different. The sample reports might only show a subset of the report. The report uses “. . .” to indicate
that further data is available but not displayed.
6.4.1 CSV
Table 54 - CSV Request / Response Sample – “Interface Availability” Network Level Report
Request / Response (CSV) - “Interface Availability” Network Level Report
Request
GET /ppm/rest/reports/Availability/Interfaces/Interface++Availability
HTTP/1.1
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
Response – Notice only a portion of the report is being displayed
HTTP/1.1 206 Partial Content
Transfer-Encoding: chunked
Date: Fri, 05 Oct 2012 21:22:11 GMT
GET /ppm/rest/reports/Availability/Interfaces/Interface++Availability
HTTP/1.1
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
Response – Notice only a portion of the report is being displayed
HTTP/1.1 206 Partial Content
Transfer-Encoding: chunked
Date: Fri, 05 Oct 2012 21:22:11 GMT
Content-Type: text/csv;charset=UTF-8
Server: Apache-Coyote/1.1