"message": ""
}
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": {
"code": "10",
"result": "success",
"message": ""
}
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.
The user must specify the index in the URI.Note
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": {
"subt": {
"index": "5",
"opmode": "Imitext",
"langmenu": "PMT Order",
"pmtorder": "Second",
"langlist": "eng",
"langentry": "eng",
"imitext": "Standard",
"foregndcol": "Auto",
"backgndcol": "Auto"
}
}
}
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
to retrieve. This example retrieves the langmenu from transcoder 5.
Note
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
255
API Definitions
Transcoding Configuration Commands