POST /system/servers/{server_id}/network_interfaces/ethernet/{device_name}
Updates an ethernet network interface based on the suppied server_Id and device_name.
| MIME Type | 
|---|
application/json  | 
| Parameter | Type | Optionality | Data Type | MIME Type | Description | 
|---|---|---|---|---|---|
server_id  | 
path  | 
Required  | 
Number (Integer)  | 
text/plain  | 
Required - The ID of the server.  | 
device_name  | 
path  | 
Required  | 
String  | 
text/plain  | 
Required - The name of an existing ethernet network interface. The interface cannot be the management interface, HA crossover interface or a slave of a bonded interface. The interface must be cable linked.  | 
| Parameter | Data Type | MIME Type | Description | Sample | 
|---|---|---|---|---|
details  | 
Object  | 
application/json  | 
Required - An ethernet network interface record containing the following fields:  
  | 
{ "ip": "String", "ipversion": "String <one of: ipv4, ipv6>", "is_auto_ip": true, "is_moving_config_with_active_ha": true, "mask": "String", "role": "String <one of: regular, management, hacrossover, hacrossover_disabled, monitor, disabled, slave, slave_disabled>" }  | 
| HTTP Response Code | Unique Code | Description | 
|---|---|---|
200  | 
The network interface has been updated.  | 
|
404  | 
1002  | 
The requested server with the given server ID cannot be found.  | 
409  | 
1004  | 
The ip address has been used by another network interface.  | 
422  | 
1005  | 
One or more parameters are invalid in request.  | 
500  | 
1020  | 
An error occurred while trying to update the specified ethernet interfaces on the server with the given ID.  | 
500  | 
1022  | 
Timeout while performing the task.  | 
Response Description
- device_name - String - The name of the network interface.
 - role - String - The role of the network interface. One of: regular, management, hacrossover, hacrossover_disabled, monitor, disabled.
 - ipversion - String - The verson of the that is IP address that is configured on the network interface. One of: ipv4, ipv6.
 - ip - String - The IP address that is configured on the network interface.
 - mask - String - The netmask configured on the network interface.
 - is_auto_ip - Boolean - Is the IP address auto-configured.
 - is_moving_config_with_active_ha - Boolean - Applies the same settings to a new active HA server during failover.
 
Response Sample
{
    "desc": "String",
    "device_name": "String",
    "hacrossover_params": {
        "String": "String"
    },
    "ip": "String",
    "ipversion": "String <one of: ipv4, ipv6>",
    "is_auto_ip": true,
    "is_cable_linked": "String <one of: true, false, unknown>",
    "is_moving_config_with_active_ha": true,
    "mask": "String",
    "role": "String <one of: regular, management, hacrossover, hacrossover_disabled, monitor, disabled, slave, slave_disabled>"
}