Example 7: URI Arguments are misspelled or invalid for the command
curl -i -k -H "X-SESSION-ID: $token" -X POST
"https://192.168.0.1/ws/v2/service_cfg/input/rf?port=1&act=Yes&dnlkfreq=1.421&symrate=32&mod=DVBS2"
Expected Output:
<?xml version="1.0" encoding="ISO-8859-1"
?><response><code>10</code><result>failed</result><message>Failed to set item Modulation
value DVBS2</message></response>
Remedy:
Re-check that URI Arguments portion of the command (the part after the ?) is correctly input.
Re-check that the URI Arguments or combinations are valid for the command.
In the above example, DVBS2 should be DVB-S2.
Example 8: URI Parameters and Arguments are valid for the command
–
in this case POST command:
curl -i -k -H "X-SESSION-ID: $token" -X POST
"https://192.168.0.1/ws/v2/service_cfg/input/rf?port=1&act=Yes&dnlkfreq=3.421&symrate=32&mod=DVB-S"
Expected Output:
<?xml version="1.0" encoding="ISO-8859-1"
?><response><code>10</code><result>success</result><message> </message></response>
ASI Input Configuration Command
Table 136: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/service_cfg/input/asi
Command URL
Allows ASI tuning input settings to be read or configured.
Command Information
GET, POST
HTTP Methods
Read/Write (with complex input data)
Access Type
User, Admin
Access Level
One of the following:
GET "https://192.168.0.1/ws/v2/service_cfg/input/asi", or
GET "https://192.168.0.1/ws/v2/service_cfg/input/asi?
port=[port#]&mip=<mip#>&act"
GET Syntax
POST "https://192.168.0.1/ws/v2/service_cfg/input/asi?
port=[port#]&mip=<mip#>..."
POST Syntax
URI Parameters (extension to the Command URL separated by /): N/A
Setting Parameters using command line arguments are limited to maximum of 26 arguments after
the ?.
Note
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
145
API Definitions
Input Configuration Command