GET /system/network/adapters/ethernet
This configuration interface is for any wired IP connections that are made through either one of the controller’s Ethernet Switch Pri(mary) connector or Ethernet Switch Sec(ondary) connector. The Wired IP parameters can be auto-configured when the connected network has a working DHCP server. The alternative is to manually configure the controller’s IP parameters.
The PrimaryDns and SecondaryDns property can be set empty.
Example:
POST
{ \"primaryDns\":\"\", \"secondaryDns\":\"\" }
If the value is empty when you will do a get on this resource, you will get the same.
Example:
GET
{ \"primaryDns\":\"\", \"secondaryDns\":\"\" }
ul
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
Object Name: Ethernet
Property Name | Type | Description | Method |
---|---|---|---|
Dhcp | Boolean | This property is used to initialize the DHCP.
|
GET POST |
IpAddress | Boolean | This property represents the IP Address.
|
GET POST |
SubnetMask | Boolean | This property represents the subnet mask.
|
GET POST |
Gateway | Boolean | This property represents the Gateway.
|
GET POST |
PrimaryDns | Boolean | This object represents the primary DNS.
|
GET POST |
SecondaryDns | Boolean | This object represents the secondary DNS.
|
GET POST |
URL Example: https://0.0.0.0/api/rest/v1/system/network/adapters/ethernet
{
"subnetMask": "255.255.252.0",
"dhcp": true,
"secondaryDns": "10.2.40.67",
"gateway": "172.16.8.1",
"primaryDns": "10.2.40.10",
"ipAddress": "172.16.8.52"
}
URL Example: https://0.0.0.0/api/rest/v1/system/network/adapters/ethernet
<?xml version="1.0" encoding="utf-8"?>
<Ethernet>
<Dhcp>true</Dhcp>
<IpAddress>172.16.8.52</IpAddress>
<SubnetMask>255.255.252.0</SubnetMask>
<Gateway>172.16.8.1</Gateway>
<PrimaryDns>10.2.40.10</PrimaryDns>
<SecondaryDns>10.2.40.67</SecondaryDns>
</Ethernet>