Parameter after print
marcelosantoro opened this issue · 5 comments
marcelosantoro commented
Hi friends....
I Would like to know... how can i send parameters to "list = api.get_resource()" or "list.get()" commands
Example
/interface print stats-detail
or
/ppp active print count-only
How can i get above results with RouterOS-api ???
marcelosantoro commented
nobody ??? :(
fernandolcx commented
Have you figured out how to do it?
marcelosantoro commented
Have you figured out how to do it?
Cara infelizmente ainda não consegui. :(
fernandolcx commented
Está tudo certo:
result = api.get_resource('interface/pppoe-server').call('print', arguments={'count-only': ''}, queries={'service': 'service10'})
print(json.dumps(result, indent=4))
mas retorna vazio.
Se alterar count-only
para detail
funciona.
Behoston commented
THX @fernandolcx for the solution.
I'm closing this issue for now.
If you still have questions, feel free to reopen/comment.