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

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

Gets all routes for a specific network device.

Parameters

deviceid

Specifies the id of the device.

Use: Required

JSON Schema:

    Object
    type:string

Responses

200

A list of all network routes.

JSON Schema: Network Routes

400

Unexpected error

404

Device does not exist.

Example Request

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

Example Result

{
    "routes": [
        {
            "id": "default",
            "url": "/api/lunasa/network/devices/eth0/default
        },
        {
            "id": "1.2.3.0_24_k_100",
            "url": "/api/lunasa/network/devices/eth0/1.2.3.0_24_k_100"
        },
        {
            "id": "2000::10_128_s_1",
            "url": "/api/lunasa/network/devices/eth3/routes/2000%3a%3a10_128_s_1"
        }
    ]
}

See Also

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