Thank you Zaid! I've updated the wiki!

On Wed, Mar 18, 2015 at 10:02 AM, Zaid Abdulla <[email protected]> wrote:

> On Tue, Mar 17, 2015, at 11:26 AM, Dave whoohoo wrote:
> > Hey,
> >
> > 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?
>
> The following API call finds a device by its serial number and returns
> only its ID and MAC. Notice we're restricting the parameters we want
> returned by using "projection" query parameter, which is a comma
> separated list of parameter names.
>
>
> http://localhost:7557/devices?query={%22InternetGatewayDevice.DeviceInfo.SerialNumber%22%3A%22C02506B09829%22}&projection=_id,InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.MACAddress
>
> Regards,
> Zaid
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to