2

this is one of the mikrotik api commandlines:

interface route add dst-address=0.0.0.0/0 gateway=36.95.238.111

/interface/route/add =dst-address=0.0.0.0/0 =gateway=36.95.238.111

but how to type :

interface bridge port set \[find interface=wlan1\] disabled=yes

I guessed:

/interface/bridge/port/set/find =interface=wlan1 =disabled=yes

but it's wrong.

and sorry for my English.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
ohmyv33nus
  • 21
  • 2

1 Answers1

0

I hate to tell you.

The Mikrotik API does not have a "find" command.

You must get all the results and use the *.id field.

I do not think the API can make changes on multiple "objects" in a single command.

Marc Wolf
  • 29
  • 4