Get-VsanIscsiLun

This cmdlet retrieves the vSAN iSCSI LUNs from a cluster or target.

Syntax

[-Cluster  <Cluster[]>]
[-LunId  <Int32[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[-VsanIscsiTarget  <VsanIscsiTarget[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Cluster
Cluster[] named
  • wildcards
  • pipeline
  • Specifies the clusters from which to retrieve LUNs.
    optional
    LunId
    Int32[] named Filters the retrieved vSAN iSCSI LUNs by LUN ID.
    optional
    Name
    String[] named
  • wildcards
  • Filters the retrieved vSAN iSCSI LUNs by name.
    optional
    Server
    VIServer[] named
  • wildcards
  • 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
    VsanIscsiTarget
    VsanIscsiTarget[] named
  • wildcards
  • pipeline
  • Specifies the vSAN iSCSI targets from which to retrieve LUNs.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Filters the retrieved vSAN iSCSI LUNs by ID.
    optional
    Server
    VIServer[] named
  • wildcards
  • 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.Iscsi.VsanIscsiLun

    Examples


    Example 1

    Get-VsanIscsiLun -Cluster "vsan-cluster"

    Retrieves all vSAN iSCSI LUNs from the "vsan-cluster" cluster.

    Example 2

    Get-VsanIscsiLun -Target $target -LunId 1

    Retrieves the vSAN iSCSI LUNs with LunId 1 from the $target iSCSI target.

    Related Commands

    Feedback

    Was this page helpful?