Syntax
Get-VsanSpaceUsage [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [-StoragePolicy <SpbmStoragePolicy[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves space usage details of a vSAN cluster.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Cluster | Cluster[] | Specifies the vSAN clusters for which to retrieve space usage details. | false | True (ByValue) | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | False | |
StoragePolicy | SpbmStoragePolicy[] | Get usable free capacity and total capacity if all objects in the vSAN datastore use the specified storage policy. | false | False |
Return Type
Zero or more VsanSpaceUsage objectsNotes
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.