Library to communicate with RouterOS REST API.
$ dotnet add package CompassCompass is a library which realize all cycle communication with RouterOS.
First parameter is a device: ip , second: username, third: password, fourth: route
var result = Compass.GetRequestWithCustomParams("10.7.0.101","test", "Qwerty-1", "system/resource");
var result = Compass.GetIpAddresses("10.7.0.101", "test", "Qwerty-1");
or Where you can get information by interface id.
var result = Compass.GetIpAddressByInterfaceId("10.7.0.101", "test", "Qwerty-1", 1);
See the documentation: https://compass-lib-docs.readthedocs.io/en/latest/
SSL must be generated first. https://help.mikrotik.com/docs/display/ROS/Certificates
MIT Free Software.