Description
URI Argument
D/R origin channel number
Type: Integer
Values: 0
…
65535
origchan
GET Examples
Example 1: Retrieve origin channel of PE1
The following example assumes that the user has successfully logged onto the unit, received the session ID,
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use.
curl -X GET -i
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/status/dr/origchans?peid=PE1&origchan"
If successful, the return body will be:
"dr": {
"origchans": {
"peid": "PE1",
"origchan": "101"
}
}
Configuration API
This section lists all the configuration commands.
Input Configuration Command
Table 132: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/service_cfg/input
Command URL
Allows inputs to be read or configured.
Command Information
GET, POST
HTTP Methods
Read/Write (with complex input data)
Access Type
User, Admin
Access Level
GET "https://192.168.0.1/ws/v2/service_cfg/input"
GET Syntax
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
135
API Definitions
Configuration API