EasyManuals Logo

Cisco D9800 User Manual

Cisco D9800
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #215 background imageLoading...
Page #215 background image
DescriptionURI Argument
Enable/Disable selected Decoder
Type: String
Value: "Yes", "No"
enable
POST Examples:
Example 1: Set a Specific Decoder to be enabled
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 sets the video decoder as enabled.
curl -X POST -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/ctrl?enable=Yes&decoder=Video"
If successful, the return body will look like:
"response": {
"code": "10",
"result": "success",
"message": ""
}
GET Examples:
Example 2: Retrieve the full list of Decoders and whether they are enabled or disabled
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/ctrl"
If successful, the return body will look like (please note this is a snippet of the full return body):
"decode": {
"ctrl": [
{
"decoder": "Video",
"enable": "Yes"
},
{
"decoder": "Audio1",
"enable": "Yes"
},
]
}
Example 3: Retrieve a specific Decoder and whether it is enabled or disabled
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 retrieves the video decoder to view the
enabled status.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/ctrl?&decoder=Video"
If successful, the return body will look like:
"decode": {
"ctrl": {
"decoder": "Video",
"enable": "Yes"
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
203
API Definitions
Decode Configuration Commands

Table of Contents

Other manuals for Cisco D9800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco D9800 and is the answer not in the manual?

Cisco D9800 Specifications

General IconGeneral
BrandCisco
ModelD9800
CategoryReceiver
LanguageEnglish

Related product manuals