i believe to assign an ip address to a vm is best done on creation, else you'll need to use the addNic API[0] with the ipaddress param set, and remove nic API [1], to remove the undesired nic/IP. I'm not sure how to modify a network after creation, it doesnt seem updateNetwork [2] will have what you need. You might need to create a new network with the correct settings... HTH
[0] https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/addNicToVirtualMachine.html [1] https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/removeNicFromVirtualMachine.html [2] https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/updateNetwork.html On Sun, May 4, 2014 at 12:12 AM, Ivan Rodriguez <[email protected]> wrote: > Dear cloudstack users > > What is the correct API call to change an ip address in a virtual machine > ?? > Also when a guest network is created you can define the range start and end > ip but once the network has been created how do you change the range ?? > > Thanks in advance >
