Query by TAG through API

Hi there,

Is there a way to get all device with a specific tag using the API?

GET http://acs.server:7557/devices/?query={"Tags.sometag":"true"},
It returns 200 OK with an empty array.

Figured it out…

1 Like

Hi, how did you make the connection string?

heres an example:

7557 is the default port of the NBI, depending on your setup it may be another port.

the projection=_id makes it return just the _id to be fast, otherwise it will return all the data from the devices, depending on how many you get, it may take a while