Cisco Cisco Prime Performance Manager 1.5 Guida Dello Sviluppatore
Cisco Prime Performance Manager1.5 REST API Guide
"code": "UnsupportedHttpVerb",
"message": "HTTP method [POST] is not supported."
}
}
"message": "HTTP method [POST] is not supported."
}
}
Table 39 - XML Request / Error Response Sample - Invalid HTTP Verb
Request / Error Response (XML) – Invalid HTTP Verb: POST
Request – Notice, the Accept header is set for “application/xml”.
POST /ppm/rest/reports/ HTTP/1.1
Accept: application/xml
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
Response
HTTP/1.1 405 Method Not Allowed
Transfer-Encoding: chunked
Date: Wed, 28 Mar 2012 18:47:05 GMT
Allow: GET
Content-Type: application/xml;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
POST /ppm/rest/reports/ HTTP/1.1
Accept: application/xml
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
Response
HTTP/1.1 405 Method Not Allowed
Transfer-Encoding: chunked
Date: Wed, 28 Mar 2012 18:47:05 GMT
Allow: GET
Content-Type: application/xml;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<error xmlns:ppm="http://www.cisco.com/ppm/rest/reports">
<code>UnsupportedHttpVerb</code>
<message>HTTP method [POST] is not supported.</message>
</error>
<error xmlns:ppm="http://www.cisco.com/ppm/rest/reports">
<code>UnsupportedHttpVerb</code>
<message>HTTP method [POST] is not supported.</message>
</error>
6 REST APIs
The APIs are composed of a GET URI + resource + parameter (or parameters) combination.
6.1 GET Report Listing
This API is used to retrieve a listing of sub-categories and report names. An empty {category} implies a
list of all top level categories. Reports are defined in a hierarchical grouping of categories and
subcategories.
list of all top level categories. Reports are defined in a hierarchical grouping of categories and
subcategories.
Ex: GET /{reportType} /{category}..
The following table shows a sample request for the top level web report categories. Notice that if the
Prime Performance Manager server has SSL enabled, you should also include the Authorization header.
Prime Performance Manager server has SSL enabled, you should also include the Authorization header.
Table 40 - – HTTP List of Reports Request Sample – Top Level Category
HTTP Request Sample – List of Reports
GET /ppm/rest/reports/ HTTP/1.1
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool
Host: ppm-clean.cisco.com:4440
Connection: Keep-Alive
User-Agent: RestClient-Tool