ESXi requires the use of datastore(s) for storing files that back a virtual machine. A datastore is nothing but a storage LUN with a VMFS filesystem on it or an NFS mount from an NAS server. Each ESXi host maintains a list of datastores that it has access to. In this recipe, we will learn how to pull this list.