Accessing cloud profile from other components
Answered
I'm building a new cloud provider, and would like to be able to show some properties of a cloud profile within a Build Feature. How can I get access to cloud profiles (esp ones of a specific type)? The CloudRegistrar sounded right, but doesn't have any properties for getting data out of it.
Also, given that I can access the profile, can I make changes to it as well?
Please sign in to leave a comment.
Hi Carl, to list all cloud profiles please use CloudManagerBase#listProfiles.
CloudManagerBase is a spring bean, so you should be able to autowire it.
Hi Sergey,
Thanks! I can't find that class, tough? I can see in other cloud plugins that it seems to be in a cloud-server package, and I actually saw a snapshot version of it in your repositories a few days ago. Now it seems to have been removed, however.
Anything I'm missing?
Best,
Carl
It's actually not a open-api now and not published, but you can grab it from TC installation: TC/webapps/ROOT/WEB-INF/lib/cloud-server.jar