Cisco D9800 Reference Manual page 223

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

Advertisement

API Definitions
Command Detail
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
Note
Table 176: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
URI Argument
prefccmode
POST Examples:
Example 1: Set various CC Setting Arguments
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 prefccmode to Auto.
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode=Auto"
If successful, the return body will look like:
"response": {
}
GET Examples:
Example 2: Retrieve the full CC Settings
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.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/cc"
If successful, the return body will look like:
"decode": {
}
Description
POST
"https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode=[value]"
For POST, the value for the argument seen below must be specified, but for GET there are no values
for arguments.
Description
Preferred Closed Caption Mode
Type: String
Value: "Auto", "SA Custom", "EIA 708", "Type 3", "DirectTv Type 3",
"Type 4 SA", "Type 4 ATSC", "Reserved", "DVS 157"
"code": "10",
"result": "success",
"message": ""
"cc": {
"prefccmode": "Auto"
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Decode Configuration Commands
211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents