Share via


CreateGatewayPathID method of the CIM_StorageHardwareIDManagementService class

This method creates a CIM_GatewayPathID and the association CIM_ConcreteDependency between this service and the new GatewayPathID.

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]

The ElementName of the new StorageHardwareID instance.

StorageID [in]

StorageID is the value used by the SecurityService to represent Identity - in this case, a hardware worldwide unique name.

IDType [in]

The type of the StorageID property. iSCSI IDs may use one of three iSCSI formats - iqn, eui, or naa. This three letter format is the name prefix; so a single iSCSI type is provided here, the prefix can be used to further refine the format.

Other (1)

PortWWN (2)

NodeWWN (3)

Hostname (4)

iSCSI Name (5)

OtherIDType [in]

The type of the storage ID, when IDType is "Other".

GatewayID [in]

GatewayID is the value used by the SecurityService to represent identity of a Gateway element.

GatewayIDType [in]

The type of the GatewayID property. iSCSI IDs may use one of three iSCSI formats - iqn, eui, or naa. This three letter format is the name prefix; so a single iSCSI type is provided here, the prefix can be used to further refine the format.

Other (1)

PortWWN (2)

NodeWWN (3)

Hostname (4)

iSCSI Name (5)

OtherGatewayIDType [in]

The type of the storage ID, when GatewayIDType is "Other".

NewGatewayPathID [out]

REF to the new GatewayPathID instance.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 4095)

ID already created (4096)

Hardware implementation does not support specified IDType (4097)

GatewayPathID already created (4099)

Hardware implementation does not support specified GatewayIDType (4100)

Method Reserved (4101 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

CIM_StorageHardwareIDManagementService