Description
Command Detail
Change management port configuration:
POST "https://192.168.0.1/ws/v2/device_ctl/eth/port?
portid=1&ipv4addr=[ipa.ddr.ess.one]"
Where [ipa.ddr.ess.one] = valid ipv4 address on port 1 subnet
If changing the subnet, then the change data port configuration:
POST "https://192.168.0.1/ws/v2/device_ctl/eth/port?
portid=2&ipv4addr=[ipa.ddr.ess.two]"
Where [ipa.ddr.ess.two] = valid ipv4 address on port 2's subnet
POST Syntax
Setting parameters using
command line arguments is
limited to maximum of 26
arguments after the ?.
For Ethernet ports configuration,
only HTTP data body is
supported. POST from
XML/JSON file is not supported.
Table 222: Level_1 URI Parameters (extension to the Command URL separated by /)
Description
URI Parameter
Indicates that port parameters will be specified.
When the command URL is
https://192.168.0.1/ws/v2/device_ctl/eth/port, then the command line
must also specify the portid URI Query/Set argument and value.
port
All of the URI Arguments below apply to both GET and POST. For GET, the URI arguments do not
need any values, except the index which must be specified. For POST the index must be specified
followed by any of the below URI arguments and the associated value the user would like to set.
In-depth CURL examples can be seen below following the table.
Note
Table 223: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
Description
URI Argument
Ethernet Port Identification
Type: digit
Value: 1, 2, 3
Notes: 1 - Management Port
2
–
DATA1
3
–
DATA2
4
–
DATA3
5
–
DATA4
portid (Key)
Ethernet Port Name
Type: string
Value: control, data1, data2
name (Read-Only)
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
266
API Definitions
Ethernet Device Control Command