PowerCLI Reference

Get-VsanFaultDomain

Synopsis

This cmdlet retrieves vSAN fault domains based on name or ID filter.

Syntax

Get-VsanFaultDomain [-Cluster <Cluster[]>] [-VMHost <VMHost[]>] [[-Name] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Get-VsanFaultDomain -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-VsanFaultDomain
Remove-VsanFaultDomain
Set-VsanFaultDomain

Detailed Description

This cmdlet retrieves vSAN fault domains based on name or ID filter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Filters the retrieved vSAN fault domains by name.falsefalse
ClusterCluster[]Specifies the vSAN cluster to which the fault domain belongs.falsetrue (ByValue)
IdString[]Filters the retrieved vSAN fault domains by ID.truefalse
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
VMHostVMHost[]Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts.falsetrue (ByValue)

Return Type

Zero or more VsanFaultDomain objects

Notes

Examples

-------------- Example 1 --------------

Get-VsanFaultDomain -VMHost $vmHost

Retrieves the vSAN fault domain which contains the $vmHost virtual machine host.

-------------- Example 2 --------------

Get-VsanFaultDomain -Cluster $cluster -Name "MyFaultDomain"

Retrieves the vSAN fault domain named "MyFaultDomain" from the $cluster vSAN cluster.


Copyright © VMware, Inc. All rights reserved.