Hi there,
Is there a way to get all device with a specific tag using the API?
Tryied
GET http://acs.server:7557/devices/?query={"Tags.sometag":"true"}
,
It returns 200 OK with an empty array.
Hi there,
Is there a way to get all device with a specific tag using the API?
Tryied
GET http://acs.server:7557/devices/?query={"Tags.sometag":"true"}
,
It returns 200 OK with an empty array.
Figured it out…
query={"_tags":“sometag”}
Hi, how did you make the connection string?
heres an example:
http://youracsserver.com:7557/devices/?query={“_tags”:“sometag”}&projection=_id
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