VMware {code} Community
Jomass
Contributor
Contributor

How to modiy static IP address and hostname when cloning

Do you have sample code or rest api calls to programmatically modify static ip address (no dhcp) and hostname of a clone vm running red hat or centos e.g. passing arguments to /rest/vcenter/vm?action=clone

Reply
0 Kudos
3 Replies
amarinov
VMware Employee
VMware Employee

Hi @Jomass,

This is not the correct sub-forum for your query. Please try posting your question to the vSphere-Management-SDK sub-forum https://communities.vmware.com/t5/vSphere-Management-SDK/bd-p/4524.

Thanks,
Aleksandar

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

If you choose "Report Inappropriate Content" from the "3 dots" menu to the right of a post you can ask moderators to move the post, which is better than a user creating a new post and leaving this one behind.

Screenshot 2021-07-15 at 14.38.38.png


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
a_p_
Leadership
Leadership

Reply
0 Kudos