Cisco D9800 Reference Manual page 231

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

Advertisement

API Definitions
URI Argument
sdiindex (key)
sdipref
POST Examples:
Example 1: Set Audio Device SDI Preference
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 sets the sdipref to Compressed. Please note that the
device index must be specified in the URI as well as the sdiindex. For this example the sdipref will be set for
audio device 1 and sdiindex 1.
curl -X POST -i
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?device=1&sdiindex=1&sdipref=Compressed"
If successful, the return body will look like:
"response": {
}
GET Examples:
Example 2: Retrieve the Audio Device SDI Preference setting
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. In this example the audio device is 1 and sdiindex is 1. Please note
that the only argument of this command is sdipref hence it must be part of 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/decode/audio?device=1&sdiindex=1&sdipref"
If successful, the return body will look like:
"decode": {
}
-H "Accept: application/json" -H "X-SESSION-ID:$token" -k
"code": "10",
"result": "success",
"message": ""
"audio": {
"sdipref": "Compressed"
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Description
Audio SDI Device Instance
Type: Integer
Value: 1
For this command, the only valid value for sdiindex is
Note
1. This is not to be confused with the sdiindex value
(1..2) range that applies for other commands (such as
ws/v2/service_cfg/decode/sdiaudio).
SDI Audio Preference/AES Output Control
Type: String
Values: "CM Samples", "Compressed"
Decode Configuration Commands
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents