Cisco D9800 Reference Manual page 267

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

Advertisement

API Definitions
}
Example 2: Changing multiple SUBT Transcoding 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. The following example changes several SUBT transcoder 5
parameters. It will set the opmode to "Imitext", langmenu to "PMT Order" and pmtorder to "Second".
curl -X POST -i -H "Accept: application/json" -H
"X-SESSION-ID: $token" -k "https://192.168.0.1/ws/v2/service_cfg/transcode/
subt?index=5&opmode=Imitext&langmenu=PMT%20Order&pmtorder=Second"
If successful, the return body will be:
"response": {
}
GET Examples:
Example 3: GET the full SUBT transcoder values for a specific transcoder
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. The following example retrieves all of the SUBT transcoder settings
for transcoder 5.
Note
The user must specify the index in the URI.
curl -X GET -i -H "Accept: application/json" -H
"X-SESSION-ID: $token" -k "https://192.168.0.1/ws/v2/service_cfg/transcode/
subt?index=5"
If successful, the following is an example of the return body:
{
"transcode": {
}
}
Example 4: GET a specific SUBT transcode value for a specific transcoder
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. The following example retrieves one specific parameter value
from the ASI tuning settings for ASI port 1.
The user must always specify the port number in the URI followed by the URI argument the user wishes
Note
to retrieve. This example retrieves the langmenu from transcoder 5.
"message": ""
"code": "10",
"result": "success",
"message": ""
"subt": {
"index": "5",
"opmode": "Imitext",
"langmenu": "PMT Order",
"pmtorder": "Second",
"langlist": "eng",
"langentry": "eng",
"imitext": "Standard",
"foregndcol": "Auto",
"backgndcol": "Auto"
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Transcoding Configuration Commands
255

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents