PowerCLI Reference

Get-VsanFaultDomain

Synopsis

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

Syntax

Get-VsanFaultDomain [[-Name] <String[]>] [-Cluster <Cluster[]>] [-Server <VIServer[]>] [-VMHost <VMHost[]>] [<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.