![]()  | 
  
    REST API
    4.0.0
    
   REST API for SafeNet Network HSMs 
   | 
 
Sets all ip4 configurations for a specific device.
The identifier of a network device.
Use:  Required  
JSON Schema:  
Object type: string
The ip address to set for the device.
Use:  Required  
JSON Schema:  
Object type: string
The subnet mask to set for the device.
Use:  Required  
JSON Schema:  
Object type: integer
The default gateway to set for the device.
Use:  Required  
JSON Schema:  
Object type: string
Success
Unexpected error
Device does not exist.
 
   PUT 
   https://1.2.3.4:8443/api/lunasa/network/devices/eth0/ip4
   {
        "ip" : "1.2.3.5",
        "mask" : 24,
        "gateway" : "1.2.3.7"
   }
 
{
}
This resource will return a waiting task if you are modifying the device that the web server is currently running on.