Cisco D9800 Reference Manual page 203

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

Advertisement

API Definitions
Table 162: Additional arguments (preceded by ? and separated by & on command line)
Argument
resync
js
For resync operation, only HTTP data body is supported. POST from XML/JSON file is not supported.
Note
As noted in
example:
"https://192.168.0.1/ws/v2/service_cfg/output/moip?mode=Map%20Service%20Channels%20Only".
POST Examples:
Example 1: Set Various MOIP Output Parameters
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/moip?dscrmode=Descrambled&ratemode=User"
If successful, the return body will be:
"response": {
}
This is the same example except it is being executed on a NTC MS unit and the descrambling mode is set to
Scrambled instead of Descrambled:
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/output/moip2?dscrmode=Scrambled&ratemode=User"
GET Examples:
Example 2: Get full table of MOIP Output Settings
Description
Resynchronize ALL PE Output
Type: Integer
Value: 1..4
1: Resynchronize Program, PMT PID, ES list & ES PIDs
2: Resynchronize ES list
3: Resynchronize ES PIDs
4: Resynchronize Template ES List & PIDs
Format output using JSON standard (applies to command line input only).
Type: exist
Values: any value or empty (any of js=1, js, js=0, or js=9999 are valid)
Omitting this argument formats the output by default in XML
Get, on page
3, in the URL input, the space in STRING should be replaced by %20, for
"code": "10",
"result": "success",
"message": ""
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Output Configuration Command
191

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents