Partager via


CreateGatewayPathID method of the MSISCSITARGET_StorageHardwareIDManagementService class

Creates a CIM_GatewayPathID instance and the MSISCSITARGET_ConcreteDependency association between the new instance and the MSISCSITARGET_StorageHardwareIDManagementService service.

This method is inherited from the CIM_StorageHardwareIDManagementService class.

Syntax

uint32 CreateGatewayPathID(
  [in]  string                ElementName,
  [in]  string                StorageID,
  [in]  uint16                IDType,
  [in]  string                OtherIDType,
  [in]  string                GatewayID,
  [in]  uint16                GatewayIDType,
  [in]  string                OtherGatewayIDType,
  [out] CIM_GatewayPathID Ref NewGatewayPathID
);

Parameters

ElementName [in]

Specifies the ElementName property of the new instance.

StorageID [in]

Specifies the unique hardware ID of the new instance.

IDType [in]

Specifies the type of the StorageID parameter.

Note

An iSCSI Name can be in any one of three iSCSI formats, IQN, EUI, or NAA.

Possible values are.

Other (1)

PortWWN (2)

NodeWWN (3)

Hostname (4)

iSCSI Name (5)

SwitchWWN (6)

OtherIDType [in]

Specifies the type of the StorageID parameter when the IDType parameter is Other.

GatewayID [in]

Specifies the unique gateway ID of the new instance.

GatewayIDType [in]

Specifies the type of the GatewayID parameter.

Note

An iSCSI Name can be in any one of three iSCSI formats, IQN, EUI, or NAA.

Possible values are.

Other (1)

PortWWN (2)

NodeWWN (3)

Hostname (4)

iSCSI Name (5)

SwitchWWN (6)

OtherGatewayIDType [in]

Specifies the type of the GatewayID parameter when the GatewayIDType parameter is Other.

NewGatewayPathID [out]

On return, contains a reference to the new CIM_GatewayPathID instance.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 0x0FFF)

ID already created (0x1000)

Hardware implementation does not support specified IDType (0x1001)

GatewayPathID already created (0x1003)

Hardware implementation does not support specified GatewayIDType (0x1004)

Method Reserved (0x1005 0x7FFF)

Vendor Specific (0x8000 0xFFFF)

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_StorageHardwareIDManagementService