Cisco D9800 Reference Manual page 199

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

Advertisement

API Definitions
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 changes both the output descrambling mode to
Descrambled and the ratemode to User.
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/asi?dscrmode=Descrambled&ratemode=User"
If successful, the return body will be:
"response": {
}
This is the same example being executed on a NTC MS unit:
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/asi1?dscrmode=Descrambled&ratemode=Auto"
GET Examples:
Example 2: Get full table of ASI Output Settings
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 full ASI Output settings.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https:// 192.168.0.1/ws/v2/service_cfg/output/asi"
If successful, the return body will be (please note this is a snippet of the full return body):
"output": {
}
}
This is the same example executed on a NTC multi-stream unit:
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https:// 192.168.0.1/ws/v2/service_cfg/output/asi2"
Example 3: Get specific ASI Output Settings
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 specific ASI Output setting of the
descrambled mode (dscrmode) and Output Mode (mode) parameters.
"code": "10",
"result": "success",
"message": ""
"asi": {
"mode": "No Output",
"dscrmode": "Descrambled",
"ratemode": "User",
"rate": "68.5",
"insertnul": "Yes",
"pe": [
{
"peid": "PE1",
"action": "Drop",
"pmtpid": "8191",
"outchan": "0"
},
{
"peid": "PE2",
"action": "Drop",
"pmtpid": "8191",
"outchan": "0"
}
]
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Output Configuration Command
187

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents