How to get the UUID for a dotCloud application?

77 Views Asked by At

some PaaS providers have an APPLICATION_UUID env variable which is obviously unique (at least across their platform).

Is there anything similar for DotCloud? I'm not finding anything like that in environment.json

2

There are 2 best solutions below

0
On

There isn't a UUID, but if you are trying to tell different instances from each other, you can use the dotcloud configuration values from the environment.json file:

DOTCLOUD_PROJECT : which is the name you have given the dotcloud application DOTCLOUD_SERVICE_NAME : which is the name you give each service (typically www, or data, etc) DOTCLOUD_SERVICE_ID : the instance number of a particular instance, starting at 0

If you concatenate the 3, it would create a unique identifier across all of your dotcloud applications, services, and instances.

1
On

There isn't anything like that exposed externally. What do you need it for, maybe I can suggest an alternative?