Using the REST API, a list of cOS Core's current route monitors can be retrieved. The information is sent back by cOS Core in JSON format and consists of the values that might also be provided by using the cOS Core CLI routemon command.
Sending the Request
To retrieve the route monitor information, an HTTP GET should be sent with the following URI:/api/oper/routemon
The GET has no optional parameters.
An Example JSON Reply
Below is an example of a typical JSON reply:{ "error":false, "routes":[ {"flags": {"error":false, "routes":[ { "flags":["M","F","X"], "interface":"dmz", "table":"", "network":"172.16.10.10", "gateway":"0.0.0.0", "metric":100, "monitors":{"arp":"fail"} } ] } } ] }