retrieve only specific information not using device ID

Dan Morphis dan at milkcarton.com
Wed Mar 18 14:16:00 EDT 2015


Thank you Zaid! I've updated the wiki!

On Wed, Mar 18, 2015 at 10:02 AM, Zaid Abdulla <zaid at genieacs.com> 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
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150318/aaf8fa4a/attachment.html>


More information about the Users mailing list