Hi I am using pyvmomi against vSphere 6.0 to query tasks ,but TaskManager managed object (ManagedObjectReference:TaskManager) only lists recent tasks, is it possbile to go back and get a list of all tasks for a particular day or for specific time frame in the last 24 hours? I am using this code to get the information.
si =
connect.SmartConnect(host='xxx.abc.yyy.com',port=xxx,user='domain\user',pwd=xxxx)
content=si.RetrieveContent()
task = content.taskManager
for tasks in task.recentTask:
tasks.info.entityName + ' ' + tasks.info.state + ' ' + str(tasks.info.completeTime) --ONLY SHOWS for the last few minutes or so.
I need to be able to ,say pass time frame and get the tasks for that time frame within the past 24 hours. Thanks