REST API  4.0.0
REST API for SafeNet Network HSMs
GET /api/lunasa/network/devices/{deviceid}/routes/{routeid}

GET /api/lunasa/network/devices/{deviceid}/routes/{routeid}

Gets information about a network device route.

Parameters

deviceid

The identifier of a network device.

Use: Required

JSON Schema:

   Object
   type: string

routeid

The identifier of a device route.

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

Basic information about the network device route.

JSON Schema: Network Route

400

Unexpected error

404

Device or route does not exist.

Example Request

    GET 
    https://1.2.3.4:8443/api/lunasa/network/devices/eth0/routes/1.2.3.6_24_s_50

Example on ipv6

    GET 
    https://1.2.3.4:8443/api/lunasa/network/devices/eth0/routes/2000%3a%3a18_128_s_1

Example Result

{
    "destination": "1.2.3.6",
    "mask": 24,
    "gateway": "1.2.3.7",
    "metric": 50
}

Example on ipv6

{
    "destination": "2000::18",
    "mask": 128,
    "gateway": "2000::1",
    "metric": 1
}