How to get an inventory field from all devices (via API?)

Hi,
I am looking for a way to get the external IP of all my accepted devices.
I see that the device inventory API is only for writing and not reading fields:
https://docs.mender.io/api/development/#management-api-device-inventory

Is there a way to do it programmatically?

I’m not sure I’m following:

curl -X GET https://hosted.mender.io/api/management/v1/inventory/devices \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer ${JWT}" | jq '.[] | .attributes | .[] | select(.name == "ipv4_eth0")'

Works just fine

Apologies for the confusion… under Device API (Mender API docs) there are only only PUT/PATCH verbs which is what I was looking into.
Before posting the question, I searched again to paste the link to the API and got the link to the management section without reading it…
Thank you for this, although this brings only the first result. Is this just a matter of parsing with jq ?

I apologize, I figured it was a typo from your end.

But you want to use the device-side API to query the inventory for the server?
Why not just use the management API? It is still available.

And, the request should be able to give you every device, I would be more suspicious of the jq filter I wrote up tbh.

You can also filter directly using the parameters listed here:
https://docs.mender.io/api/development/#management-api-device-inventory-list-device-inventories

I hope this is the question you’re really asking, if not feel free to correct me again.