Hi,
I have a balena application with multiple devices connected to it. I want to dynamically get each device’s public url. Each device is to connect to different mobile app users. I need an endpoint that can access all connected devices and assign each device to individual mobile app
Hey, public URLs are always <device-uuid>.balena-devices.com
, and to get the list of device uuids you can make api call mentioned here https://www.balena.io/docs/reference/api/resources/application/. you can do the same via balena-sdk, for a single device you can finds its uuid from within the Container, it is stored as an ENV variable.
1 Like
thanks, but how do I get the application’s Auth_Token?
Gotten, thanks for your support
No problem, happy to help