EasyManuals Logo

Cisco D9800 User Manual

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
Page #188 background imageLoading...
Page #188 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco D9800 and is the answer not in the manual?

Cisco D9800 Specifications

General IconGeneral
BrandCisco
ModelD9800
CategoryReceiver
LanguageEnglish

Related product manuals