As seen above, the possible URIs are seen. The SDI 1 and 2 Output Modes are still a part of audio. Place the
specific URI (see above) into the CURL command and the user will be able to POST and GET the SDI 1 and
2 Output Modes.
POST Example
Example 1: Set Audio Device SDI1Output:
curl -X POST -i
-H "Accept: application/json" -H "X-SESSION-ID:$token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/audio?sdi1output=PVO"
If successful, the return body will look like:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Example
Example 2: Retrieve the Audio Device SDI1Output setting
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?sdi1output"
If successful, the return body will look like:
"decode": {
"audio": {
"sdi1output": "PVO"
}
}
Audio ST302 Device Settings Command
Table 183: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/service_cfg/decode/aud_302
Command URL
Allows set or get of audio ST302 decoder settings.
Command Information
GET, POST
HTTP Method(s)
Read, Write
Access Type
User, Admin
Access Level
GET "https://192.168.0.1/ws/v2/service_cfg/decode/aud_st302
Syntax
POST "https://192.168.0.1/ws/v2/service_cfg/decode/aud_st302?
streamid=2
”
POST Syntax
Setting Parameters using command line
arguments is limited to maximum of
26 arguments after the ?.
URI Parameters (extension to the Command URL separated by /): N/A
URI Query/Set Arguments (possible fields and values preceded by ? and separated by &):
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
221
API Definitions
Decode Configuration Commands