Cisco D9800 Reference Manual page 217

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

Advertisement

API Definitions
Table 170: URI Query/Set Arguments
URI Argument
pvformat
sdformat
POST Examples:
Example 1: Set various video 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. The following example sets the PV Output Format to Auto and
the SD Video Output Format 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/video?sdformat=Auto&pvformat=Auto"
If successful, the return body will look like:
"response": {
}
GET Examples:
Example 2: Retrieve the full Video 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/video"
If successful, the following is an example of the return body (this is a snippet of the full return body):
"decode": {
}
Example 3: Retrieve specific video 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. Please change
the IP to the specific unit IP in use. This example will retrieve the PV Output Format and SD Video Output
Format.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/video?&sdformat&pvformat"
"code": "10",
"result": "success",
"message": ""
"video": {
"pvformat": "Auto",
"sdformat": "Auto",
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Description
PV Output Format
Type: String
Values: "Auto", "HD1080i", "HD720p", "SD"
SD Video Output Format
Type: String
Values: "Auto", "PAL-B/G/I/D", "PAL-M", "PAL-N (AR)", "NTSC"
Decode Configuration Commands
205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents