WriterAndrew

Mikrotik Api Examples < Recent >

curl -u "admin:yourpass" -k "https://ROUTER_IP/rest/interface"

Before diving into the examples, make sure you have: mikrotik api examples

Assume you have a script named "backup_config" in /system script . 'comment': 'Printer' )

api('/ip/dhcp-server/lease/add', 'address': '192.168.88.50', 'mac-address': '00:11:22:33:44:55', 'server': 'dhcp1', 'comment': 'Printer' ) mikrotik api examples