Community discussions

MikroTik App
 
rboerom
just joined
Topic Author
Posts: 18
Joined: Mon Mar 17, 2008 3:30 pm

ADDING SImple Queues and address list items via API

Tue Jan 19, 2010 5:44 am

Hi everyone, sorry to bother,I dont know if this has been asked before, if so would preciate a link,
If anyone can help me with a sample on how to add simple queues and address list via the API I would really appreciate it
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: ADDING SImple Queues and address list items via API

Tue Jan 19, 2010 11:55 am

API is similar to CLI, if you have some address list items and/or simple queue added, you can do export there and see the command from cli (/ip firewall address-list export)

that will look like:
/ip firewall address-list
add address=192.168.1.1 comment="" disabled=no list=test-list
from here API command will look like
/ip/firewall/address-list/add
=address=192.168.1.1
=comment=
=disabled=no
=list=test-list
do same for simple queue, or any other command.

Who is online

Users browsing this forum: No registered users and 3 guests