EasyManua.ls Logo

Cisco D9800 - Page 188

Cisco D9800
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Expected output (values are for example purposes only):
{
"pe": {
"record": {
"peid": "1",
"chn": "802"
}
}
}
POST Method Examples:
Use to Configure PE, XML and JSON are supported from the post file.
XML from file Example:
File contents of temp.xml:
<pe><record><peid>1</peid><chn>801</chn><inp>RF1</inp></record></pe>
Input (POST PE configuration info via file temp.xml):
curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-Type:application/xml" -d
@"C:/projects/temp.xml" "https://192.168.0.1/ws/v2/service_cfg/pe"
Expected output (values are for example purposes only):
<?xml version="1.0" encoding="ISO-8859-1"
?><response><code>10</code><result>success</result><message></message></response>
JSON from file Example:
File contents of temp.js:
{
"pe": {
"record": {
"peid": "1",
"chn": "802"
}
}
}
Input (POST PE configuration info via file temp.js):
curl -k -X POST -H "X-SESSION-ID: $token" --header "Content-Type:application/json" -d
@"C:/projects/temp.js" "https://192.168.0.1/ws/v2/service_cfg/pe?js=1"
Expected output (values are for example purposes only):
{
"response": {
"code": "10",
"result": "success",
"message": ""
}
}
To POST a channel change to a specific PE, in this case PE 1 and new channel will be 41 the following CURL
command applies:
Input (POST PE specific peid configuration info via command line):
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k "https://
192.168.0.1/ws/v2/service_cfg/pe?peid=1&chn=41"
Expected output (values are for example purposes only):
{
"response": {
"code": "10",
"result": "success",
"message": ""
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
176
API Definitions
PE Configuration Command

Table of Contents

Other manuals for Cisco D9800

Related product manuals