简体   繁体   中英

Mulesoft - retrieve the Cloudhub versionID within a running application

When a Mulesoft application is deployed to Cloudhub, it gets assigned an ID that is available from the Cloudhub API . In Cloudhub API v2, this value is named versionID .

Can I retrieve this ID value within the app itself while it's running? I want to use it to refer to the application on a remote log. Some values appear to be available as predefined variables , but I don't see this one.

It might be the ${application.id} property. Be aware that a property is not a variable. If so it is an undocumented property and may be removed or changed at any time. I recommend to avoid depending on such undocumented features.

Another option is to call the CloudHub API directly from the running application, or to define your own property set an unique value.

Note that in CloudHub application names are unique, so you could use just that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM