## PowerCLI Reference

# Get-VsanIscsiInitiatorGroupTargetAssociation

## Synopsis

This cmdlet retrieves all pairs of associations between vSAN iSCSI targets and initiator groups, which have access to the corresponding targets.

Syntax

Get-VsanIscsiInitiatorGroupTargetAssociation [-Target <VsanIscsiTarget[]>] [-InitiatorGroup <VsanIscsiInitiatorGroup[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-VsanIscsiInitiatorGroupTargetAssociation
Remove-VsanIscsiInitiatorGroupTargetAssociation

Detailed Description

This cmdlet retrieves all pairs of associations between vSAN iSCSI targets and initiator groups, which have access to the corresponding targets.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
InitiatorGroup | VsanIscsiInitiatorGroup[] | Specifies the vSAN iSCSI initiator groups. | false | true (ByValue)
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. | false | false
Target | VsanIscsiTarget[] | Specifies the vSAN iSCSI targets. | false | true (ByValue)

Return Type

Zero or more VsanIscsiInitiatorGroupTargetAssociation objects

Notes

Examples

-------------- Example 1 --------------

    Get-VsanIscsiInitiatorGroupTargetAssociation -Target $target

Retrieves all initiator group associations for the $target iSCSI target.

-------------- Example 2 --------------

    Get-VsanIscsiInitiatorGroupTargetAssociation -InitiatorGroup $initiatorGroup

Retrieves all target associations for the $initiatorGroup initiator group.

Copyright © VMware, Inc. All rights reserved.