PowerCLI Reference

Get-VsanFaultDomain

Synopsis

This cmdlet retrieves Virtual SAN 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 Virtual SAN fault domains based on name or ID filter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Filters the retrieved Virtual SAN fault domains by name.falsefalse
ClusterCluster[]Specifies the Virtual SAN cluster to which the fault domain belongs.falsetrue (ByValue)
IdString[]Filters the retrieved Virtual SAN 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 Virtual SAN 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 Virtual SAN fault domain which contains the $vmHost virtual machine host.

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

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

Retrieves the Virtual SAN fault domain named "MyFaultDomain" from the $cluster Virtual SAN cluster.


Copyright © VMware, Inc. All rights reserved.