Get-VsanIscsiTarget

This cmdlet retrieves vSAN iSCSI targets from clusters. The cmdlet can filter targets by IQN and aliases.

Syntax

[-Cluster  <Cluster[]>]
[-IscsiQualifiedName  <String[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Cluster
Cluster[] named
  • wildcards
  • pipeline
  • Specifies the clusters from which to retrieve vSAN iSCSI targets.
    optional
    IscsiQualifiedName
    String[] named Filters the retrieved vSAN iSCSI targets by IQN.
    optional
    Name
    String[] named
  • wildcards
  • Filters the retrieved vSAN iSCSI targets 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.

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

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Filters the retrieved vSAN iSCSI targets 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.VsanIscsiTarget

    Examples


    Example 1

    Get-VsanIscsiTarget -Cluster "vsan-cluster"

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

    Example 2

    Get-VsanIscsiTarget -Cluster $cluster -Name "Target1"

    Retrieves the vSAN iSCSI target named "Target1" from the $cluster vSAN cluster.

    Related Commands

    Feedback

    Was this page helpful?