Cisco Cisco Prime Performance Manager 1.7 Guida Dello Sviluppatore
Cisco Prime Performance Manager 1.7 REST API Guide
Allow: GET
Content-Type: text/csv;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Content-Type: text/csv;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
error_code,error_message
UnsupportedHttpVerb,HTTP method [POST] is not supported.
Table 47 - JSON Request / Error Response Sample - Invalid HTTP Verb
Request / Error Response (Json) – Invalid HTTP Verb: POST
Request – Notice, the Accept header is set for “application/json”.
POST /ppm/rest/reports/ HTTP/1.1
Accept: application/json
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Host: ppm-clean.cisco.com:4440
User-Agent: RestClient-Tool
Response
HTTP/1.1 405 Method Not Allowed
Transfer-Encoding: chunked
Date: Sun, 01 Apr 2012 07:50:28 GMT
Allow: GET
Content-Type: application/json;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
POST /ppm/rest/reports/ HTTP/1.1
Accept: application/json
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Host: ppm-clean.cisco.com:4440
User-Agent: RestClient-Tool
Response
HTTP/1.1 405 Method Not Allowed
Transfer-Encoding: chunked
Date: Sun, 01 Apr 2012 07:50:28 GMT
Allow: GET
Content-Type: application/json;charset=UTF-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
{
"error": {
"code": "UnsupportedHttpVerb",
"message": "HTTP method [POST] is not supported."
}
}
"error": {
"code": "UnsupportedHttpVerb",
"message": "HTTP method [POST] is not supported."
}
}
Table 48 - 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>
<error xmlns:ppm="http://www.cisco.com/ppm/rest/reports">
<code>UnsupportedHttpVerb</code>