I am new to VM and pyVmomi. I am trying to run command for storage reclamation in Vsphere and hypervisor for datastores using pyVmomi. For now, I can just access the Vsphere and make connection.
from pyVim.connect import SmartConnect, Disconnect
import requests
import ssl
requests.packages.urllib3.disable_warnings()
context = ssl._create_unverified_context()
si = SmartConnect(host="Host name",user="user id",pwd="password",sslContext=context)
client = si.RetrieveContent()
print(client)
disconnect(si)
I have no idea as to how to proceed further. Any suggestions or lead will be appreciated.