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]

Parameters

Required Parameter Name Type Position Features Description
optional
Cluster
Cluster[] named
  • pipeline
  • Specifies the cluster from which to fetch the vSAN Direct disk info.
    optional
    DiskCanonicalName
    String[] named Specifies the identifier of the disk. It accepts one or more disk canonical names.
    optional
    Server
    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]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    VMHost
    VMHost[] named
  • pipeline
  • Specifies the hosts from which to fetch the vSAN Direct disk info.
    optional
    DiskCanonicalName
    String[] named Specifies the identifier of the disk. It accepts one or more disk canonical names.

    -Id  <String[]>
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    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

    Feedback

    Was this page helpful?