RequestUsageChange method of the MSISCSITARGET_StorageConfigurationService class
Requests a change in the usage of a specified element.
This method is inherited from the CIM_StorageConfigurationService class.
Syntax
uint32 RequestUsageChange(
[in] uint16 Operation,
[in] uint16 UsageValue,
[in] string OtherUsageDescription,
[out] CIM_ConcreteJob Ref Job,
[in] CIM_LogicalElement Ref TheElement
);
Parameters
-
Operation [in]
-
Specifies the action to perform.
The possible values are.
-
DMTF Reserved
- 0 1
-
Set (2)
-
Modify Other description only (3)
-
DMTF Reserved
- 14 0x7FFF
-
Vendor Specific
- 32768 65535
UsageValue [in]
Specifies the requested usage. This parameter corresponds to the Usage property of the element that is specified in the TheElement parameter. For example, different subclasses have different possible values for the Usage property.
The possible values for the MSISCSITARGET_StoragePool.Usage property are.
Other (1)
Unrestricted (2)
Reserved for ComputerSystem (the block server) (3)
Reserved as a Delta Replica Container (4)
Reserved for Migration Services (5)
Reserved for Local Replication Services (6)
Reserved for Remote Replication Services (7)
Reserved for Sparing (8)
DMTF Reserved
Vendor Specific
The possible values for the MSISCSITARGET_StorageVolume.Usage property are.
Other (1)
Unrestricted (2)
Reserved for ComputerSystem (the block server) (3)
Reserved by Replication Services (4)
Reserved for Migration Services (5)
Local Replica Source (6)
Remote Replica Source (7)
Local Replica Target (8)
Remote Replica Target (9)
Local Replica Source or Target (10)
Remote Replica Source or Target (11)
Delta Replica Target (12)
Element Component (13)
Reserved as Pool Contributor (14)
Composite Volume Member (15)
Composite LogicalDisk Member (16)
Reserved for Sparing (17)
DMTF Reserved
Vendor Specific
OtherUsageDescription [in]
Specifies a description of the requested usage when the UsageValue parameter is set to Other.
Job [out]
On return, contains a reference to the job, if a job is created and not completed.
TheElement [in]
Specifies the storage element to modify.
Return value
This method returns one of the following values.
-
Completed with No Error (0)
-
Not Supported (1)
-
Unknown (2)
-
Timeout (3)
-
Failed (4)
-
Invalid Parameter (5)
-
Not Authorized (6)
-
DMTF Reserved (7 4095)
-
Method Parameters Checked - Job Started (4096)
-
Method Reserved (4097 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 |
|