Hi,
I get all the hosts from a cluster with the command:
var hosts = cluster.getAllHostSystemOfCluster();
I want to pass over the array of hosts, and check if the host is available and not in maintenance mode and get all the datastore from the host.
Thanks!