REST API  17
REST API for Luna Network HSMs
GET /api/lunasa/network/devices/{deviceid}/ip4

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

Gets ip4 information from a network device.

Parameters

deviceid

The identifier of a network device.

Use: Required

JSON Schema:

   Object
   type: string
   minLength: 1
   maxLength: 32
   pattern: ^[a-zA-Z0-9_.-]*$

Responses

200

Ip4 information about the network device.

JSON Schema: Network Device Ip4

400

FRAMEWORK_BAD_REQUEST

Returned when the input data does not conform to the required validation schema.

404

Device does not exist.

Example Request

   GET 
   https://1.2.3.4:8443/api/lunasa/network/devices/eth0/ip4
{
}

Example Result

{
   "ip": "1.2.3.24",
   "mask": 24,
   "gateway": "1.2.3.56"
}