Get-VsanFaultDomain
This cmdlet retrieves vSAN fault domains based on name or ID filter.
Syntax
[-Cluster
<Cluster[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-VMHost <VMHost[]>]
[CommonParameters]
[-Name <String[]>]
[-Server <VIServer[]>]
[-VMHost <VMHost[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
Cluster[] | named |
|
Specifies the vSAN cluster to which the fault domain belongs. | optional |
|
String[] | named |
|
Filters the retrieved vSAN fault domains by name. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
VMHost[] | named |
|
Specifies the list of virtual machine hosts to filter the vSAN fault domains. Filters the fault domains that contain any of the given hosts. |
-Id
<String[]>
[-Server <VIServer[]>]
[CommonParameters]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String[] | named |
|
Filters the retrieved vSAN fault domains by ID. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.VsanFaultDomain
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.
Related Commands
VsanFaultDomain
This cmdlet retrieves vSAN fault domains based on name or ID filter.
This cmdlet changes the configuration of a specified vSAN fault domain.
This cmdlet removes vSAN fault domains.
This cmdlet creates a new vSAN fault domain in a cluster with specified virtual machine hosts.