The client.vcenter.vm.guest.Identity.get just does not have such option (VM's parent folder name).
I have considered a fallback to pyVmomi, but it is pretty slow in general.
The client.vcenter.vm.guest.Identity.get just does not have such option (VM's parent folder name).
I have considered a fallback to pyVmomi, but it is pretty slow in general.
Copyright © 2021 Jogjafile Inc.
To retrieve the parent folder of a virtual machine using the vSphere Automation SDK for Python, you can utilize the vSphere REST API. The vSphere Automation SDK for Python is based on the vSphere REST API and provides a convenient way to interact with vSphere using Python. Exp:
Make sure you have installed the vsphere-automation-sdk Python package. You can install it using pip:
Replace with the URL of your vSphere Automation SDK repository.
API documentation for more details: VMware vSphere Automation API - VM Operations.