Get-VsanDirectDisk
This cmdlet retrieves vSAN Direct disks based on the specified filters. This cmdlet is not supported in a vSAN ESA enabled cluster. You can use this cmdlet starting from vSAN 7.0 Update 1.
Syntax
[-Cluster
<Cluster[]>]
[-DiskCanonicalName <String[]>]
[-Server <VIServer[]>]
[CommonParameters]
[-DiskCanonicalName <String[]>]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
Cluster[] | named |
|
Specifies the cluster from which to fetch the vSAN Direct disk info. | optional |
|
String[] | named |
|
Specifies the identifier of the disk. It accepts one or more disk canonical names. | 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. |
-VMHost
<VMHost[]>
[-DiskCanonicalName <String[]>]
[CommonParameters]
[-DiskCanonicalName <String[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VMHost[] | named |
|
Specifies the hosts from which to fetch the vSAN Direct disk info. | optional |
|
String[] | named |
|
Specifies the identifier of the disk. It accepts one or more disk canonical names. |
-Id
<String[]>
[CommonParameters]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String[] | named |
|
Specifies the ID(s) of the vSAN Direct disk(s) that you want to retrieve. The ID format is "{uuid}/{host}". |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.VsanDirectDisk
Examples
Example 1
Get-VsanDirectDisk -diskcanonicalname "mpx.vmhba0:C0:T3:L0"
Retrieves all vSAN Direct disks with the specified canonical name.
Example 2
Get-VsanDirectDisk -vmhost "10.212.18.213"
Retrieves all vSAN Direct disks from the specified host.
Example 3
Get-VsanDirectDisk -id "HostSystem-host-16/0000000000766d686261303a333a30"
Retrieves the vSAN Direct disks with the specified ID.
Related Commands
VsanDirectDisk
This cmdlet retrieves vSAN Direct disks based on the specified filters.
This cmdlet removes vSAN Direct disks from a vSAN cluster.
This cmdlet creates a vSAN Direct disk from a specified hard disk.