< Back

Get-VsanIscsiTarget

Sun Jan 19, 2020 7:16 pm

NAME 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>]





DESCRIPTION

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





PARAMETERS

-Cluster <Cluster[]>

Specifies the clusters from which to retrieve vSAN iSCSI targets.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-Id <String[]>

Filters the retrieved vSAN iSCSI targets by ID.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IscsiQualifiedName <String[]>

Filters the retrieved vSAN iSCSI targets by IQN.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String[]>

Filters the retrieved vSAN iSCSI targets by name.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Server <VIServer[]>

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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VsanIscsiTarget objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... scsiTarget .html

New-VsanIscsiLun

Remove-VsanIscsiLun

Set-VsanIscsiLun