简体   繁体   中英

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. 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:

$ 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?

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