Community discussions

MikroTik App
 
davidw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Apr 27, 2007 11:11 pm

API manual DETAIL

Mon Jun 16, 2014 11:25 am

In the API manual it talks about the fields that are being returned using the proplist. It then goes on to say that using the proplist is a good thing especially if the "=detail" argument is set.

How does the ="detaills" argument work?

/ip/hotspot/ip-bindings/getall
=details=true


see manual extract :-

if .proplist is absent, all properties are included as requested by print command, even those that have slow access time (such as file contents and perfomance counters). Thus use of .proplist is encouraged. Omission of .proplist may have high perfomance penalty if =detail= argument is set.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API manual DETAIL

Mon Jun 16, 2014 12:45 pm

it needs to be updated.

print (getall is now simply an alias to print) without detail where changed to not to include all the fields available. Now it returns what print in CLI would return in the same circumstance.

but still use of .proplist is highly encouraged to reduce the load on the router while returning data.
 
davidw
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Fri Apr 27, 2007 11:11 pm

Re: API manual DETAIL

Mon Jun 16, 2014 3:02 pm

Ok thanks for the clarification.

Am I right in thinking that not all fields are returned via get all command which under a normal terminal session would be ?

I have come across a few examples where this is the case
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API manual DETAIL

Mon Jun 16, 2014 4:28 pm

print will return the same as print in CLI. for more stuff you have run monitor command or detail flag.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 27 guests