I need to automate OVA upload to a vCenter datastore where the code will not have direct network connectivity to ESXi host, only to vCenter server.
I have researched the following solutions but they all require connectivity to ESXi host.
- pyvmomi SDK based on sample code - deploy_ova.py
- ovftool
- govc
The vCenter automation REST Api has support to upload an OVA to a content library - signed_ova_import.py This code creates a content library and then uploads the OVA, but I need to upload the image template to a user-specified datastore which is not in the content library. Our customer has existing image templates which are stored on their datastores with a specific folder hierarchy. We are working to automate image management and need upload capability to the same datastore structure.
Anyone have a suggestion on how to automated OVA upload using python or a REST api without using ESXi host ?