Apologies if this is documented somewhere but I’ve not found it. Is there a way to list currently defined services and status of said services on an openBalena device using cli or an API?
I need to understand the issue better. You want to know the services and the status of them running on a specific device.
Do you want to request the openBalena API for this information or do you want to request the device locally for this information like by asking the supervisor on the device?
Either would be fine although it’s useful to know both methods.
If I understood correctly, you want to be able to list services running on a device and possibly with their status.
You can achieve this via
You will need to use this method. You will need to initialise the sdk pointing to your openBalena instance.
the supervisor api - to get info locally
You can use this endpoint
Hope this is helpful