Getting UiPath instance identifier from a custom activity


I’m creating a custom UiPath activity which will have its own license. I would like the activity to check if this particular UiPath instance is included into a list of instances where my activity is allowed to run, or not. Thus, I need an identifier of the UiPath instance where my activity is running.

The best candidate for such identifier seems to be Activation ID which is a part of UiPath license. I believe it can be retrieved using LicenseService (I did not check it yet). However, this service does not look like an officially supported API, and possibly it can change in the future.

Is there a reliable way of getting Activation ID?

Maybe there is a different value which can be used as an identifier of the UiPath Instance?

Thank you,