<div dir="ltr">Thank you Zaid! I've updated the wiki!</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 10:02 AM, Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Mar 17, 2015, at 11:26 AM, Dave whoohoo wrote:<br>
> Hey,<br>
><br>
> I was wondering whether it is possible to request for example only the device ID of a CPE if one knows the IP address. So is it possible to add some sort of where-clause in the query and if so how is this done?<br>
<br>
</span>The following API call finds a device by its serial number and returns<br>
only its ID and MAC. Notice we're restricting the parameters we want<br>
returned by using "projection" query parameter, which is a comma<br>
separated list of parameter names.<br>
<br>
    <a href="http://localhost:7557/devices?query={%22InternetGatewayDevice.DeviceInfo.SerialNumber%22%3A%22C02506B09829%22}&projection=_id,InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.MACAddress" target="_blank">http://localhost:7557/devices?query={%22InternetGatewayDevice.DeviceInfo.SerialNumber%22%3A%22C02506B09829%22}&projection=_id,InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.MACAddress</a><br>
<br>
Regards,<br>
Zaid<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>