Cisco D9800 Reference Manual page 215

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

Advertisement

API Definitions
URI Argument
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": {
}
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": {
]
}
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": {
}
"code": "10",
"result": "success",
"message": ""
"ctrl": [
{
"decoder": "Video",
"enable": "Yes"
},
{
"decoder": "Audio1",
"enable": "Yes"
},
"ctrl": {
"decoder": "Video",
"enable": "Yes"
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Description
Enable/Disable selected Decoder
Type: String
Value: "Yes", "No"
Decode Configuration Commands
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents