Share via


BindiSCSIProtocolEndPoint method of the MSISCSITARGET_iSCSIConfigurationService class

Modifies an existing MSISCSITARGET_iSCSIProtocolEndpoint instance by associating a Target Network Port or an Initiator Network Port to the MSISCSITARGET_iSCSIProtocolEndpoint instance. The association is persisted as a CIM_BindsTo instance.

This action is intended to be reversed by the use of the intrinsic CimSession.DeleteInstance method.

This method is inherited from the CIM_iSCSIConfigurationService class.

Syntax

uint32 BindiSCSIProtocolEndPoint(
  [in] CIM_iSCSIProtocolEndpoint Ref iSCSIPort,
  [in] CIM_ProtocolEndpoint Ref      NetworkPortal
);

Parameters

iSCSIPort [in]

Specifies the iSCSI protocol endpoint to modify.

NetworkPortal [in]

Specifies the protocol endpoint instance to associate.

An iSCSI Initiator Port is represented by a CIM_IPProtocolEndpoint instance. An iSCSI Target Port is represented by a CIM_TCPProtocolEndpoint instance.

The selected endpoint must be from the same portal group, that is a system specific collection, as the endpoints that are currently bound to the MSISCSITARGET_iSCSIProtocolEndpoint instance.

Return value

This method returns one of the following values.

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 4095)

ProtocolEndpoint Non-Existent (4096)

TCPProtocolEndpoint Not Bound To Underlying IPProtocolEndpoint (4097)

ProtocolEndpoint In Use By Other iSCSIProtocolEndpoint In Same Target SCSIProtocolController (4098)

ProtocolEndpoint Not From Same Endpoint Collection (4099)

Method Reserved (4100 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_iSCSIConfigurationService