Cisco Cisco Prime Performance Manager 1.2 開発者ガイド
Cisco Prim e Perform ance Manager REST API Guide
Copyright 2012 Cis co Systems
- 6 -
Defaults to CSV: * or */*
Notice that a 406 status is returned for an Accept header that is not supported by the REST API.
5.1.1 Accept Header Preference
When the “ Accept” header contains more than one accept type supported by the REST API, the following
order of preference is followed:
order of preference is followed:
CSV - > JSON - > X ML
For example,
Accept: text/xml, text/csv, application/json
-- CSV is selected
Accept: application/json, text/csv
-- CSV is selected
Accept: text/xml, application/json
– JSON is selected
Accept: application/xml, text/csv, application/json
– CSV is selected
Accept: text/html, */*, text/xml
– XML is selected
Accept: text/html, */*
– default to CSV due to the */*
Accept: text/html, image/jpeg, *
-- default to CSV due to *
Accept: text/html, image/jpeg, text/plain
-- 406 error is returned.
5.2 Character Set Encoding
T his Reports RE ST API defaults all the responses to the “ UT F-8” charset encoding, irrespective of the
reque sted charset sent.
reque sted charset sent.
5.3 URI Syntax
T he REST API calling URI syntax is defined as follo ws:
Table 2 – URL Syntax
URL Syntax
{scheme }://{host}:{port}/ppm/re st/re ports/{resource }?{parame te rs=…}..
Table 3 – URL Parts
URL Parts
Sample Value
Description
sche me
http or https
Use https when Prime Performance
Manager SSL is enabled; otherwise, it
should be http.
Manager SSL is enabled; otherwise, it
should be http.
Host
For example: “ppm-
clean.cisco.com”
clean.cisco.com”
Note: use your own domain name
above.
above.
T he host name assigne d to the Prime
Performance Manager gateway server
Performance Manager gateway server