![]() |
REST API
14
REST API for Luna Network HSMs
|
Performs the specified action on a bond device. The actions available are "enable" and "disable".
Users with the following role privileges can perform this command:
The identifier of a network device. The deviceid can be the bond device created on the appliance, i.e. bond0 , bond1.
Use: Required
JSON Schema:
Object type: string
This parameter specifies the id of the action to be performed. Could be action "enable" or "disable".
Use: Required
JSON Schema:
Object type:string
Indicates whether to preserve or delete all non-default routes configured to the bond device which is being disabled. This request parameter is sent with action 'disable'.
Use: Required
JSON Schema:
Object type:boolean false = do not keep routes true = do keep routes
Success
Unexpected error occured.
No action matched
Failed to execute due to malformed request.
Bond device specified is not configured.
Bond device specified is already enabled.
Bond device specified is already disabled.
Failed to enable the bond device.
Failed to disable the bond device.
Device type specified is invalid.
For 'enable':
POST https://1.2.3.4:8443/api/lunasa/network/devices/bond0/actions/enable {}
For 'disable':
POST https://1.2.3.4:8443/api/lunasa/network/devices/bond0/actions/disable { "keepRoutes" : false }
{}