List the routes of an interface
GET/api/node/:hostname/interface/:name/route
Reads the routes of the main table that go out of the interface: ip route on Linux, netstat on macOS. proto says where a route came from, such as dhcp, kernel or static. An interface with no routes has none; one the host does not have is not found.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Each target host's result.
The request is not valid, or the host refuses the input, such as a path that is a directory.
Unauthorized - API key required
Forbidden - Insufficient permissions
The host does not have what the request names, such as the object of a deploy.
osapi did not deploy the item, so it does not change it, or the host does not have a program that the method needs.
An error on the controller.