![]() |
REST API
14
REST API for Luna Network HSMs
|
Removes a specific route.
Users with the following role privileges can perform this command:
Specifies the id of the device.
Use: Required
JSON Schema:
Object type:string
Specifies the id of the route.
Use: Required
JSON Schema:
Object type:string
The parameter to determine the route to be set is a host route or network.
Use: Required
JSON Schema:
Object type:string pattern: (host|network)
The IP address or the hostname to route to. It must be calculated with the mask provided.
Use: Required
JSON Schema:
Object type: string
The subnet mask to set for the device.
Default value of network route is "255.255.255.0" .
Use: Not Required
JSON Schema:
Object type: string
The default gateway to set for the device.
Use: Optional
JSON Schema:
Object type: string
Specifies the path the router should take.
Use: Optional
JSON Schema:
Object type: int MinValue: 0 MacValue: 65535
The flag to determine the route to be added has IPv6 address. Flag is set to false by default.
Use: Optional
JSON Schema:
Object type:boolean
Success
Unexpected error or device is slave of an active bond or bad request.
Failed to execute due to malformed request.
Specified interface does not exist.
DELETE https://1.2.3.4:8443/api/lunasa/network/devices/eth0/routes/192.168.0.0_24_s_50 { "routeType" : "network", "destination" : "192.168.0.0", "netmask" : "255.255.255.0", "gateway" : "192.168.0.1", "metric" : 105, "isIPv6": false }
{}