Mikrotik | Api Examples
connection.on('connect', () => const torchChannel = connection.openChannel(); torchChannel.write('/tool/torch', ['=interface=ether1']);
| HTTP Verb | CRUD | RouterOS Command | Description | |-----------|--------|------------------|-------------------------------------| | GET | Read | print | List all records or a single record | | PUT | Create | add | Create a new record | | PATCH | Update | set | Update a single record | | DELETE | Delete | remove | Delete a single record | | POST | – | arbitrary | Execute any console command | mikrotik api examples
While it lacks the polish of Meraki or the standardization of NETCONF/YANG, it offers granular control that few other platforms can match. If you are willing to roll up your sleeves and write code, you can automate literally anything on a MikroTik router. connection