PowerCLI Reference

Get-VsanSpaceUsage

Synopsis

This cmdlet retrieves space usage details of a vSAN cluster.

Syntax

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

Related Commands

Online Version

Detailed Description

This cmdlet retrieves space usage details of a vSAN cluster.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ClusterCluster[]Specifies the vSAN clusters for which to retrieve space usage details.falseTrue (ByValue)
ServerVIServer[]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.falseFalse
StoragePolicySpbmStoragePolicy[]Get usable free capacity and total capacity if all objects in the vSAN datastore use the specified storage policy.falseFalse

Return Type

Zero or more VsanSpaceUsage objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.