# New operators for devices inventory API

**URL:** <https://hub.mender.io/t/new-operators-for-devices-inventory-api/881>\
**Category:** General Discussions\
**Created:** [August 1, 2019, 12:35pm UTC](https://hub.mender.io/t/new-operators-for-devices-inventory-api/881 "2019-08-01T12:35:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsirac](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rsirac/32/310_2.png) [@rsirac](https://hub.mender.io/u/rsirac)\
**Post date:** [August 1, 2019, 12:35pm UTC](https://hub.mender.io/t/new-operators-for-devices-inventory-api/881/1 "2019-08-01T12:35:16Z")

</div>

Hi

I am currently working with Mender API and I would like to get devices list with some filters.

I am using the route : _/api/management/v1/inventory_

With this example:

> GET /devices?attr\_name\_1=foo&  
> attr\_name\_2=100&  
> …

My problem here, is that the API accepts only “ **EQUAL** ” operator. And I would like to use a “ **LIKE** ” operator or “ **CONTAINS** ” in order to have all devices with the _attr\_name\_1_ containing my filter value.

Do you have some information on this point?

Thanks!

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 1, 2019, 1:21pm UTC](https://hub.mender.io/t/new-operators-for-devices-inventory-api/881/2 "2019-08-01T13:21:59Z")

</div>

Hi @rsirac

Currently the API only supports the “ **EQUAL** ” operation. We are planning on implementing more advanced filtering capabilities, which would allow **LIKE** and **CONTAINS** and more use-cases (think regexp).

This will be a commercial feature and will be available on Hosted Mender/Mender Enterprise.

---

<div class="post-metadata">

**Author:** ![rsirac](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rsirac/32/310_2.png) [@rsirac](https://hub.mender.io/u/rsirac)\
**Post date:** [August 1, 2019, 1:25pm UTC](https://hub.mender.io/t/new-operators-for-devices-inventory-api/881/3 "2019-08-01T13:25:10Z")

</div>

Thank you for your answer.

So bad that is not intended to be available in the open-source version, but I understand!

Thanks
