Cisco D9800 Reference Manual page 228

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

Advertisement

Decode Configuration Commands
The device=all must be specified in the URI for Language%20List 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%20Lis
t"
If successful, the return body will look like:
"response": {
}
Example 5: Attempt to set Audio decoder langmenu option to PMT Order using device=# instead of
device=all format
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 Example 4 and attempts to sets the langmenu option to
PMT%20Order on only one device.
Note
The device=all must be specified in the URI for PMT%20Order case because that setting value cannot be
combined with any other "Language%20List" or "Language%20Entry" option value for other devices.
This example is not expected to be successful:
curl -X POST -i
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=1&langmenu=PMT%20Order"
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 Example 3.
Example 6: Attempt to set Audio decoder langmenu option to Language Entry using device=# instead
of device=all format after all Audio devices already have langmenu set to PMT Order
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 is intended to be run only after Example 3 and attempts to sets the langmenu option
to Language%20Entry on only one device.
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.
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
216
-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": "failure",
"message": "Select by PMT Order and Language cannot be combined. Try changing
API Definitions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents