I’m trying to get release_tags onboard a device so that I can use the information as metadata. The problem is that the device won’t have an authorization token and won’t be able to perform the query (it’s not worth refreshing tokens on 100+ devices every 7 days).
What’s a better avenue for grabbing the release tags? Is any of that information stored locally? I can get the releaseId from the supervisor, but not tags.
and I get expected data. According to device access docs, it seems like the device’s BALENA_API_KEY is only given access to certain endpoints: /application, /device and /release all work, but /release_tag does not.
I just checked and it looks like the device’s api key doesn’t have access to release tags, I’ll raise if it’s something we want to expose to the device key, aside from that you can use a single api key at the application level that each device shares to avoid needing to generate them individually
Hi Nick, just a quick update. This was discussed a while back and it planned to be implemented, but hasn’t been prioritised yet. I have bumped it up the priority list a bit and we will come back to this thread to let you know when its implemented. thanks for the request
Hi @nckswt I just wanted to let you know the feature has been implemented and deployed. You should now be able to access the release tags with the device api key.
Thanks for your suggestion and let us know if everything is working as expected for you.