Cisco D9800 Reference Manual page 213

Network transport receiver
Hide thumbs Also See for D9800:
Table of Contents

Advertisement

API Definitions
Example 3: Get the table of MOIP Output Stream Parameters for a specific Stream (or PE)
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. This example returns the MOIP Output Settings for a specific
Stream (PE), in this case PE 1.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/moip/ipo?ipoid=1"
If successful, the return body will be:
"output": {
}
Example 4: Get specific parameters of the MOIP Output Settings for a specific Stream (PE)
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. This example returns the destination IP address and the destination
IP port of the MOIP Output Settings for a specific Stream (PE) in this case PE 1.
curl -X GET -i
"https://192.168.0.1/ws/v2/service_cfg/output/moip/ipo?ipoid=1&dest_ip&dest_port"
If successful, the return body will be:
"output": {
}
"ttl": "34",
"src_port": "0",
"ann_type": "None",
"ann_src": "User String",
"ann_title": "Cisco Default SAP1_2",
"fec_mode": "2D",
"fec_col": "4",
"fec_row": "10",
"fec_colport": "49154",
"fec_rowport": "49156"
},
}
"moip": {
"ipo": {
"ipoid": "1",
"iporate": "68.5",
"encaps": "RTP",
"dest_ip": "225.1.1.101",
"dest_port": "49152",
"toc": "0",
"ttl": "64",
"src_port": "0",
"ann_type": "None",
"ann_src": "User String",
"ann_title": "Cisco Default SAP1_1",
"fec_mode": "2D",
"fec_col": "4",
"fec_row": "10",
"fec_colport": "49154",
"fec_rowport": "49156"
}
}
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"moip": {
"ipo": {
"ipoid": "1",
"dest_ip": "225.1.1.101",
"dest_port": "49152"
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Output Configuration Command
201

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents