how to connect to cloudstack on java platform

坚强是说给别人听的谎言 提交于 2019-12-11 19:36:09

问题


I have setup cloudstack server completely and want to create a program on the Java platform for control cloudstack by passing by program.

How do I connect with cloudstack?


回答1:


CloudStack provides an API that yo can use to program against. You can find the API reference under: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/API_Developers_Guide/index.html

The API Developers Guide contains also many useful information (e.g. how to bypass authentication for testing): http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/API_Developers_Guide/index.html

As for interfaces that make programming against the API easier, I know of:

  • Marvin: A Python testing framework for CloudStack
  • CloudMonkey, already mentioned by @Donal Lafferty: A command line interface for CloudStack
  • jClouds: An interface that supports multiple cloud software including CloudStack

I'm in the process of writing system tests for CloudStack and so far I'm inclined to go for jClouds because it is Java and can be used as client for CloudStack API in my tests.




回答2:


Write a script using CloudMonkey.



来源:https://stackoverflow.com/questions/18257849/how-to-connect-to-cloudstack-on-java-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!