Cisco Cisco Prime Performance Manager 1.5 Developer's Guide

Page of 41
 
Cisco Prime Performance Manager1.5 REST API Guide 
6.2 Report Listing Samples 
The following samples were collected from a Cisco development serverto illustrate the data structure of 
the different data format types: XML, JSON, and CSV. The data provided by your server will likely be 
different. 
6.2.1 CSV 
Table 22 - CSV Request / Response Sample – List of Reports 
Request / Response (CSV) – List of Reports 
Request 
GET /ppm/rest/reports/ HTTP/1.1 
Host: ppm-cls-vm05.cisco.com:4440 
Connection: Keep-Alive 
User-Agent: RestClient-Tool 
Response 
HTTP/1.1 200 OK 
Transfer-Encoding: chunked 
Date: Wed, 09 May 2012 15:34:16 GMT 
Content-Type: text/csv;charset=UTF-8 
Server: Apache-Coyote/1.1 
Cache-Control: 3600 
 
name,uri 
Application Traffic,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Application+Traffic/ 
Availability,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Availability/ 
IP Protocols,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/IP+Protocols/ 
IP QoS,http://ppm-cls-vm05.cisco.com:4440/ppm/rest/reports/IP+QoS/ 
IP SLA,http://ppm-cls-vm05.cisco.com:4440/ppm/rest/reports/IP+SLA/ 
Mobile IOS Statistics,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Mobile+IOS+Statistics/ 
Mobile StarOS Statistics,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Mobile+StarOS+Statistics/ 
Resources,http://ppm-cls-vm05.cisco.com:4440/ppm/rest/reports/Resources/ 
Security,http://ppm-cls-vm05.cisco.com:4440/ppm/rest/reports/Security/ 
Transport Statistics,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Transport+Statistics/ 
Video Broadcast,http://ppm-cls-
vm05.cisco.com:4440/ppm/rest/reports/Video+Broadcast/ 
6.2.2 JSONv2 
JSONv2 is a simpler and easier to traverse data structure reports in the JSON format. It can be 
obtained by passing the outputType=jsonv2 query string parameter or the HTTP Accept 
header “application/vnd.cisco.ppm+json;v=2”. 
6.2.3 JSON 
Table 41 - JSON Request / Response Sample – List of Reports 
Request / Response (JSON) – List of Reports