CreateStorageHardwareID method of the MSISCSITARGET_StorageHardwareIDManagementService class
Creates a MSISCSITARGET_StorageHardwareID instance, and creates the MSISCSITARGET_ConcreteDependency association between this instance and the MSISCSITARGET_StorageHardwareIDManagementService service.
This method overrides the method inherited from the CIM_StorageHardwareIDManagementService class.
Syntax
uint32 CreateStorageHardwareID(
[in] string ElementName,
[in] string StorageID,
[in] uint16 IDType,
[in] string OtherIDType,
[in] CIM_StorageClientSettingData REF Setting,
[out] CIM_StorageHardwareID REF HardwareID
);
Parameters
-
ElementName [in]
-
Specifies the ElementName property of the MSISCSITARGET_StorageHardwareID instance.
-
StorageID [in]
-
Specifies the hardware worldwide unique ID of the MSISCSITARGET_StorageHardwareID 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.
Setting [in]
Specifies a MSISCSITARGET_StorageClientSettingData instance that contains the host environment properties that are associated with the MSISCSITARGET_StorageHardwareID instance.
If NULL, the instrumentation applies a MSISCSITARGET_StorageClientSettingData.ClientTypes property value of Standard.
HardwareID [out]
On return, contains a reference to the MSISCSITARGET_StorageHardwareID 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)
-
Method Reserved (4099 32767)
-
Vendor Specific (32768 65535)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\CIMv2\Storage\iScsiTarget |
MOF |
|
DLL |
|