DescriptionURI Argument
IP version selection
Type: String
Value: IPv4, IPv6
Only IPv4 is currently
supported.
Note
ipver
IP V4 Address
Type: String
Value: IP address, for example, 192.168.0.1
ipv4addr
IP V4 mask
Type: digit
Value: 8..30
ipv4mask
IP V4 Default Gateway
Type: String
Value: IP address, for example, 192.131.244.254
ipv4defgw
IP Physical Port Mode
Type: String
Value: Auto, 10HD, 10FD, 100HD, 100FD, 1000FD
phymode
GET Method Examples:
Display physical Ethernet Port information in XML or JSON. It can be used to display all ports information
or specific port or port field information according to the input parameters.
Show all port Info in XML format:
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/device_ctl/eth"
Expected output (values are for example purposes only):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<devicectl>
<eth>
<port>
<portid>1</portid>
<name>Management</name>
<ipver>IPv4</ipver>
<ipv4addr>192.168.0.1</ipv4addr>
<ipv4mask>24</ipv4mask>
<ipv4defgw>192.168.0.254</ipv4defgw>
<phymode>Auto</phymode>
</port>
<port>
<portid>2</portid>
<name>Data1</name>
<ipver>IPv4</ipver>
<ipv4addr>192.168.1.2</ipv4addr>
<ipv4mask>24</ipv4mask>
<ipv4defgw>192.168.1.254</ipv4defgw>
<phymode>Auto</phymode>
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
267
API Definitions
Ethernet Device Control Command