PowerCLI Reference

Get-VsanIscsiTarget

Synopsis

This cmdlet retrieves vSAN iSCSI targets from clusters.

Syntax

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

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

Related Commands

Online Version
New-VsanIscsiLun
Remove-VsanIscsiLun
Set-VsanIscsiLun

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Filters the retrieved vSAN iSCSI targets by name.falseFalse
ClusterCluster[]Specifies the clusters from which to retrieve vSAN iSCSI targets.falseTrue (ByValue)
IdString[]Filters the retrieved vSAN iSCSI targets by ID.trueFalse
IscsiQualifiedNameString[]Filters the retrieved vSAN iSCSI targets by IQN.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse

Return Type

Zero or more VsanIscsiTarget objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.