简体   繁体   English

如何使用Jcloud API在特定端口上创建OpenStack VM实例

[英]How to create an openstack VM instance on a specific port using jcloud api

I know how to create a VM instance in jCloud using ServerApi but it creates instance on any available port. 我知道如何使用ServerApi在jCloud中创建VM实例,但是它会在任何可用端口上创建实例。 I want to know how to create an instance on a given port number. 我想知道如何在给定的端口号上创建实例。 In openstack cli we use --nic port-id parameter to specify the port as show here: 在openstack cli中,我们使用--nic port-id参数指定端口,如下所示:

$ nova boot \
--nic port-id=3c564dd5-fd45-4f61-88df-715f71667b3b \
--flavor m1.tiny \
--image fedora-20-x86_64 \
--key-name lars test0

How can I create server using this port-id in jClouds? 如何在jClouds中使用此端口ID创建服务器?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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