REST API  4.0.0
REST API for SafeNet Network HSMs
PATCH /api/lunasa/network/devices/{deviceid}/ip4

PATCH /api/lunasa/network/devices/{deviceid}/ip4

Sets ip4 configurations for a specific device.

Parameters

deviceid

The identifier of a network device.

Use: Required

JSON Schema:

   Object
   type: string

ip

The ip address to set for the device.

Use: Not Required

JSON Schema:

   Object
   type: string

mask

The subnet mask to set for the device.

Use: Not Required

JSON Schema:

   Object
   type: integer

gateway

The default gateway to set for the device.

Use: Not Required

JSON Schema:

   Object
   type: string

Responses

204

Success

400

Unexpected error

404

Device does not exist.

Example Request

   PATCH 
   https://1.2.3.4:8443/api/lunasa/network/devices/eth0/ip4
   {
        "ip" : "1.2.3.5",
        "mask" : 24
   }

Example Result

{

}

Notes

This resource will return a waiting task if you are modifying the device that the web server is currently running on.