vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.01k stars 922 forks source link

Create convert_template.py + get_datastore_url.py #702

Open mestredelpino opened 2 years ago

mestredelpino commented 2 years ago

I would like to add "convert_template.py" as a new sample. This code converts a VM into a template and viceversa (by providing it a cluster name, which will be used as a resource pool). The code will also power off the VM before converting it into a template.

Additionally, I would like to add get_datastore_url.py, which retrieves the url of a given datastore