Share via


New method of the MSFT_iSCSITargetPortal class

Creates and configures a new iSCSI target portal.

Syntax

uint32 New(
  [in]  string  TargetPortalAddress,
  [in]  uint16  TargetPortalPortNumber,
  [in]  string  InitiatorInstanceName,
  [in]  string  InitiatorPortalAddress,
  [in]  boolean IsHeaderDigest,
  [in]  boolean IsDataDigest,
  [out] String  CreatedTargetPortal
);

Parameters

TargetPortalAddress [in]

The IP or DNS address associated with the target portal.

TargetPortalPortNumber [in]

The TCP port number for the target portal. The default value is 3260.

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.

InitiatorPortalAddress [in]

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

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.

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.

CreatedTargetPortal [out]

A reference to the newly created MSFT_iSCSITargetPortal 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_iSCSITargetPortal