<div dir="ltr">In v1.1, the query param for /devices  changes from "device" to "_id"<br><br>Remember to url encode your query:<div>/devices?query=%7B%22_id%22%3A%22EC4F82-ONT-CXNK00309984%22%7D<span style="font-size:12.8px">&projection=</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">InternetGatewayDevice.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">LANDevice</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 8:53 AM, Scott Miller <span dir="ltr"><<a href="mailto:cubicalmonkey@gmail.com" target="_blank">cubicalmonkey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Was wondering if anyone else is seeing this or if I'm simply doing something wierd.<br><br>Using GenieACS 1.1 When I query by ID or WAN Mac address via API,  Im returning all devices.<br>FWIW This was working as expected in version 1.0.<br> <br>Query by MAC:<br>query={"InternetGatewayDevice.<wbr>WANDevice.5.<wbr>WANConnectionDevice.1.<wbr>WANIPConnection./^\\d+$/.<wbr>MACAddress" :"'. _MAC($mac) .'"}&projection=<wbr>InternetGatewayDevice.<wbr>LANDevice<br><br>Query by ID:<br>query={"device":"EC4F82-ONT-<wbr>CXNK00309984"}&projection=<wbr>InternetGatewayDevice.<wbr>LANDevice<br><br><br>Returned Data:<br>          {<br>            '_id' => 'EC4F82-ONT-CXNK0030C7A5',<br>            'InternetGatewayDevice' => {<br>                              <wbr>           'LANDevice' => {<br>                     *** SNIP ***<br>                    }<br>        }          },<br>          {<br>            '_id' => '0000CA-DG2470A-<wbr>G5UBSY89A600319'<br>          },<br>          {<br>            '_id' => 'EC4F82-ONT-CXNK00309998',<br>            'InternetGatewayDevice' => {<br>                              <wbr>           'LANDevice' => {<br>                     *** SNIP ***<br>                    }<br>        }<br>    }<br><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>