HidePaths method of the CIM_ControllerConfigurationService class
Hide a list of SCSI logical units (such as a RAID volume or tape drive) from a list of initiators and/or target ports on a SCSIProtocolController (SPC).
When hiding logical units, there are three specific use cases identified. The instrumentation MUST support these use cases. Other permutations are allowed, but are vendor-specific. The use cases are: Remove LUs from a view, Remove initiator IDs from a view, and Remove target port IDs from a view. Remove LUs from a view requires that the LUNames parameter not be null and that the InitiatorIDs and TargetPortIDs parameters be null. Remove initiator IDs from a view requires that the LUNames parameter be null, that the InitiatorIDs not be null, and that the TargetPortIDs parameters be null. Remove target port IDs from a view requires that the LUNames and InitiatorPortIDs parameters be null.
The disposition of the SPC when the last logical unit, initiator ID, or target port ID is removed depends upon the CIM_ProtocolControllerMaskingCapabilites SPCAllowsNo* properties. If SPCAllowsNoLUs is false, then the SPC is automatically deleted when the last logical unit is removed. If SPCAllowsNoTargets is false, then the SPC is automatically deleted when the last target port ID is removed. If SPCAllowsNoInitiators is false, then the SPC is automatically deleted when the last initiator port ID is removed. In all other cases, the SPC MUST be explicitly deleted via the DeleteInstance intrinsic function.
Syntax
uint32 HidePaths(
[out] CIM_ConcreteJob REF Job,
[in] string LUNames[],
[in] string InitiatorPortIDs[],
[in] string TargetPortIDs[],
[in, out] CIM_SCSIProtocolController REF ProtocolControllers[]
);
Parameters
-
Job [out]
-
Reference to the job if 'Method Parameters Checked - Job Started' is returned (MAY be null if job completed).
-
LUNames [in]
-
An array of IDs of logical units. The LU instances MUST already exist. The members of this array MUST match the Name property of LogicalDevice instances. See the method description for conditions where this MAY be null.
-
InitiatorPortIDs [in]
-
IDs of initiator ports. See the method description for conditions where this MAY be null.
-
TargetPortIDs [in]
-
IDs of target ports. See the method description for conditions where this MAY be null.
-
ProtocolControllers [in, out]
-
An array of references to SCSIProtocolControllers (SPCs). On input, this MUST contain exactly one element; there MAY be multiple references on output. The instrumentation will attempt to remove associations (LUNames, InitiatorPortIDs, or TargetPortIDs) from this SPC. Depending upon the specific implementation, the instrumentation MAY need to create new SPCs with a subset of the remaining associations. On output, this is an array of references to SPCs created or modified as the result of processing the request.
Return value
-
Success (0)
-
Not Supported (1)
-
Unspecified Error (2)
-
Timeout (3)
-
Failed (4)
-
Invalid Parameter (5)
-
DMTF Reserved (6 4095)
-
Method Parameters Checked - Job Started (4096)
-
Invalid logical unit ID (4097)
-
Invalid initiator port ID (4098)
-
Invalid target port ID (4099)
-
Target/initiator combination not exposed (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 |
|
DLL |
|