Get-VsanSpaceUsage Command | Vmware PowerCLI Reference

Get-VsanSpaceUsage

This cmdlet retrieves space usage details of a vSAN cluster.

Syntax

Get-VsanSpaceUsage
[-Cluster < Cluster[] > ]
[-Server < VIServer[] > ]
[-StoragePolicy < SpbmStoragePolicy[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Cluster Cluster[] named
  • pipeline
  • wildcards
Specifies the vSAN clusters for which to retrieve space usage details.
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional StoragePolicy SpbmStoragePolicy[] named
Get usable free capacity and total capacity if all objects in the vSAN datastore use the specified storage policy.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanSpaceUsage

Examples

Example 1

Get-VsanSpaceUsage -Cluster $cluster

Retrieves space usage details of the $cluster vSAN cluster.

Example 2

Get-VsanSpaceUsage -Cluster $cluster -StoragePolicy "vSAN Default Storage Policy"

Retrieves space usage details of the $cluster vSAN cluster and what-if usable free space if all new vSAN objects using the specified vSAN storage policy.

Related Commands

VsanSpaceUsage

This cmdlet retrieves space usage details of a vSAN cluster.