Cisco D9800 Reference Manual page 229

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

Advertisement

API Definitions
The following example is not expected to be successful:
curl -X POST -i
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=2&langmenu=Language%20Entry"
The return body will look like:
{
"response": {
settings for all Audio devices simultaneously."
}
}
To fix this issue, use device=all in the command to set the same value for all devices first as per below:
This example sets the langmenu option for ALL Audio devices to Language%20Entry.
The device=all must be specified in the URI for Language%20Entry case when the existing value was
Note
previously set to PMT%20Order because that setting value cannot be combined with any other
"Language%20List" or "Language%20Entry" option value for other devices.
curl -X POST -i
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=all&langmenu=Language%20Ent
ry"
If successful, the return body will be:
"response": {
}
To then achieve, the device=# setting, please proceed to next example.
Example 7: Attempt to set Audio decoder langmenu option to Language List (or Language Entry) on
single device in combination with other devices that are already set to use Language Entry or Language
List
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 is intended to be run only after either all or some of current Audio devices are already set to
using either Language%20Entry or Language%20List but not PMT%20Order. We recommend that you first
set all the devices (using the "device=all" POST version of the command) to the same Language%20xxxx
option value before changing the setting for individual devices.
curl -X POST -i
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=2&langmenu=Language%20Entry"
If successful, the return body will be:
"response": {
}
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"code": "10",
"result": "failure",
"message": "Select by PMT Order and Language cannot be combined. Try changing
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"code": "10",
"result": "success",
"message": ""
-H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"code": "10",
"result": "success",
"message": ""
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Decode Configuration Commands
217

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents