VMware Cloud Community
ajithhostingraj
Contributor
Contributor

Vcenter/Vspeher API for create VM from template

We are doing automate create VM from template, for this we need vcenter API for doing this setup. Please let us know any API is available for deploy this function?

We have tried to find out this API but we couldn't find any vm create from template API

0 Kudos
1 Reply
chs1
Enthusiast
Enthusiast

In the API Explorer (https://your-vcenter/apiexplorer) have a look at the ovf/library_item API call. The deploy option "Deploys an OVF package stored in content library to a newly created virtual machine or virtual appliance." which sounds like what you need to achieve.

https://your-vcenter/apiexplorer/#!/ovf_library_item_/post_com_vmware_vcenter_ovf_library_item_id_ov...

0 Kudos