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

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

Gets all bond device actions. The actions available are "enable" and "disable".

Parameters

deviceid

Specifies the id of the device.The deviceid can be the bond device created on the appliance, i.e. bond0 , bond1.

Use: Required

JSON Schema:

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

Responses

200

A list of all bond device actions that can be performed under the network.

JSON Schema: Network Device Actions

400

FRAMEWORK_BAD_REQUEST

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

Invalid device type or unexpected error

404

Invalid device

Example Request

   GET
   https://1.2.3.4:8443/api/lunasa/network/devices/bond1/actions

Example Result

{
    "actions": [
        {
            "id": "disable",
            "url": "/api/lunasa/network/devices/bond1/actions/disable"
        },
        {
            "id": "enable",
            "url": "/api/lunasa/network/devices/bond1/actions/enable"
        }
    ]
}