Cisco D9800 Reference Manual page 219

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

Advertisement

API Definitions
URI Argument
arselect
wssmode
POST Examples:
Example 1: Set various Aspect Ratio 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. The following example sets the Standard Definition Aspect Ratio
to 4:3 and the Selected Aspect Ratio Conversion 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/ar?arselect=Auto&sdar=4:3"
If successful, the return body will look like:
"response": {
}
GET Examples:
Example 2: Retrieve the full Aspect Ratio 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/ar"
If successful, the return body will look like (this is a snippet of the full return body):
"decode": {
}
Example 3: Retrieve specific Aspect Ratio 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. The following example retrieves the Standard Definition Aspect
Ratio and the Selected Aspect Ratio Conversion.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/ar?&arselect&sdar"
Description
Selected Aspect Ratio Conversion
Type: String
Value: "None", "Auto", "Auto AFD", "16:9 L/B", "4:3 P/B", "14:9",
"4:3 CCO", "16:9 SCALE"
Wide Screen Signaling Mode
Type: String
Values: "Passthrough", "Suppress", "Auto:Modify", "Auto:Create"
"code": "10",
"result": "success",
"message": ""
"ar": {
"sdar": "4:3",
"arselect": "Auto",
"wssmode": "Passthrough"
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Decode Configuration Commands
207

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents