我最近安装了与eclipse一起使用的jcloud,以便在java中创建一个项目来与openstack通信。有没有人知道有没有办法从快照或使用默认参数(ovf镜像)创建实例。我将不胜感激。非常感谢。
发布于 2014-04-04 14:26:39
试试OpenStack4j。Jcloud只是OpenStack的高级基础应用程序接口,因为它支持许多其他云。使用OpenStack4j的示例
// Create a Server Model Object
Server server = Builders.server()
.name("Ubuntu 2")
.flavor("flavorId")
.image("imageId")
.addPersonality("/etc/motd", "Welcome to the new VM! Restricted access only")
.build();
// Boot the Server
Server server = os.compute().servers().boot(server);https://stackoverflow.com/questions/19539413
复制相似问题