API query returning all devices.

Scott Miller cubicalmonkey at gmail.com
Fri Mar 3 12:53:03 EST 2017


Was wondering if anyone else is seeing this or if I'm simply doing
something wierd.

Using GenieACS 1.1 When I query by ID or WAN Mac address via API,  Im
returning all devices.
FWIW This was working as expected in version 1.0.

Query by MAC:
query={"InternetGatewayDevice.WANDevice.5.WANConnectionDevice.1.WANIPConnection./^\\d+$/.MACAddress"
:"'. _MAC($mac) .'"}&projection=InternetGatewayDevice.LANDevice

Query by ID:
query={"device":"EC4F82-ONT-CXNK00309984"}&projection=InternetGatewayDevice.LANDevice


Returned Data:
          {
            '_id' => 'EC4F82-ONT-CXNK0030C7A5',
            'InternetGatewayDevice' => {
                                         'LANDevice' => {
                     *** SNIP ***
                    }
        }          },
          {
            '_id' => '0000CA-DG2470A-G5UBSY89A600319'
          },
          {
            '_id' => 'EC4F82-ONT-CXNK00309998',
            'InternetGatewayDevice' => {
                                         'LANDevice' => {
                     *** SNIP ***
                    }
        }
    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170303/67bd34f0/attachment.html>


More information about the Users mailing list