Example on how to get space attributes of datastores with pyVmomi

Quick post sharing an example on how to display and interpret datastore’s space related attributes such as: Capacity (vim.Datastore.summary.capacity) Free Space (vim.Datastore.summary.freeSpace) Uncommitted space (vim.Datastore.summary.uncommitted) Provisioned Space: capacity – free_space + uncommitted Over-provisioned space: provisioned – capacity