chirpstack-application-server icon indicating copy to clipboard operation
chirpstack-application-server copied to clipboard

Filter device list by tags in API

Open neben opened this issue 3 years ago • 0 comments

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary

The device service GET endpoint should be able to filter results by tag keys/values.

What is the use-case?

This gives a very flexible filtering mechanism. For example, we store the tenant for each sensor in a tenant tag. It would be great to query the API to get all sensors belonging to this tenant.

Implementation description

Add the tag keys and values as a parameter, prefixed with tag:

api/devices?limit=10&applicationID=1&tagTenant=exampleTenant1

Can you implement this by yourself and make a pull request?

Unfortunately not in the near future.

neben avatar Feb 25 '22 18:02 neben