steampipe plugin install theapsgroup/vsphere

Table: vsphere_datastore

A datastore is a storage pool that can be used by virtual machines.

The vsphere_datastore table can be used to query datastore utilization and capacity.

Examples

List datastores

select
*
from
vsphere_datastore;

Select inacessible datastores

select
*
from
vsphere_datastore
where
accessible = false;

Select NFS type datastores

select
*
from
vsphere_datastore
where
type = 'NFS';

Schema for vsphere_datastore

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
accessiblebooleanThe connectivity status of this datastore
capacitybigintMaximum capacity of this datastore in bytes
freebigintAvailable space of this datastore, in bytes
moreftextManaged object reference of the datastore
nametextThe name of the datastore
typetextType of file system volume, such as VMFS or NFS
uncommittedbigintTotal additional storage space, in bytes, potentially used by all virtual machines on this datastore