Description
URI Argument
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"
arselect
Wide Screen Signaling Mode
Type: String
Values: "Passthrough", "Suppress", "Auto:Modify", "Auto:Create"
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": {
"code": "10",
"result": "success",
"message": ""
}
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": {
"ar": {
"sdar": "4:3",
"arselect": "Auto",
"wssmode": "Passthrough"
}
}
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"
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
207
API Definitions
Decode Configuration Commands