Automatically Enable Public Device URL

I’m wondering what the best way is to automatically enable the “Public Device URL” for all devices in an application without manually visiting each device page and enabling it through the “Actions” menu?

Feels like it should be a config variable, but I’m not seeing it.

Thanks

Hey @rmoore,

There isn’t a way to batch enable device URLs from the dashboard, though it’s sounds like a good idea. (I’ll create an issue).

Currently the best way is to do it is via the SDK. You’d loop through devices in an app and run resin.models.device.enableDeviceUrl(<uuid>);. You can find more details in the docs.

Cheers,
Craig

Great, thanks for your help!

1 Like

I’ve created an issue internally for the dashboard functionality. Will let you know how it progresses. :thumbsup:

Hi @craig-mulligan - any update on this topic?

Hello,
the dashboard is receiving new features and functionality constantly. Although there are implemented some filters/actions for groups of devices, the ability to enable/disable the public urls for a group of devices is not there yet. However, I see that there is a feature request for this in the dashboard, so it’s something that we are considering adding.
Best,
ilias

Was wondering if this is supported now. I would like to have the functionality of enabling public device URL by default for a fleet.

@hackedunit - This is available now and can be accessed via devices pane. Details here: Actions - Balena Documentation

Note: We do not have the functionality to enable it by default. I have raised this out with our internal team as a feature request.