Grabbed this from another post. Added some logging as a test....but no tasks are returned.
var hosts = VcPlugin.allSdkConnections;
//var allClusters = VcPlugin.getAllClusterComputeResources();
System.log(hosts[0]);
var tm = hosts[0].taskManager;
System.log(tm);
var allTasks = tm.recentTask;
System.log(allTasks);
Tried this one as well:
var hosts = VcPlugin.vimHosts;
var tm = hosts[0].taskManager;
tasks = tm.recentTask;
System.log(tasks.length);
for (var i in tasks) {
System.log(tasks[i].info.name);
}
Add to boot tried the
getAllTasks method from the VcPlugin and VcSdkconnection.
Got nothing returned.