Connect method of the MSFT_iSCSITarget class

Creates a session between an iSCSI initiator and an iSCSI target.

Syntax

uint32 Connect(
  [in]  string  NodeAddress,
  [in]  string  TargetPortalAddress,
  [in]  uint16  TargetPortalPortNumber,
  [in]  string  InitiatorPortalAddress,
  [in]  boolean IsDataDigest,
  [in]  boolean IsHeaderDigest,
  [in]  boolean ReportToPnP,
  [in]  string  AuthenticationType,
  [in]  boolean IsMultipathEnabled,
  [in]  boolean IsPersistent,
  [in]  string  InitiatorInstanceName,
  [out] String  CreatediSCSISession
);

Parameters

NodeAddress [in]

The iSCSI qualified name (IQN) of the target.

TargetPortalAddress [in]

The IP address or DNS name associated with the target portal.

TargetPortalPortNumber [in]

The TCP port number for the target portal.

InitiatorPortalAddress [in]

The IP address or DNS name associated with the initiator portal.

IsDataDigest [in]

If true, the initiator should enable the session to use an iSCSI data digest scheme when logging into the target portal. Otherwise, the data digest setting is determined by the initiator kernel mode driver.

IsHeaderDigest [in]

If true, the initiator should enable the session to use a header digest scheme when logging into the target portal. Otherwise, the header digest setting is determined by the initiator kernel mode driver.

ReportToPnP [in]

If true, the operation is reported to PnP.

AuthenticationType [in]

The type of authentication to use when logging into the target.

IsMultipathEnabled [in]

If true, the iSCSI initiator service allows multiple sessions to the same target portal.

IsPersistent [in]

If true, the session is automatically connected at every restart.

InitiatorInstanceName [in]

The name of the initiator instance that the iSCSI initiator service uses to send SendTargets requests to the target portal. If no instance name is specified, the iSCSI initiator service chooses the initiator instance.

CreatediSCSISession [out]

A reference to the newly created MSFT_iSCSISession object.

Requirements

Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Microsoft\Windows\Storage
MOF
Iscsiwmiv2.mof

See also

MSFT_iSCSITarget