Mikrotik Api Commandline "FIND"

Viewed 409

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.

1 Answers

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.

Related