VMware {code}

 View Only

 I need an API to upload ova to a user-specified datastore ?

Ian Govett's profile image
Ian Govett posted Jun 23, 2025 09:18 AM

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.

  1. pyvmomi SDK based on sample code - deploy_ova.py
  2. ovftool
  3. 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 ?