AddSharedSecret method of the MSISCSITARGET_ReplicationService class
Introduces a new instance of the CIM_SharedSecret class in the specified namespace and optionally associates it to an instance of a CIM_ServiceAccessPoint.
This method is inherited from the CIM_ReplicationService class.
Syntax
uint32 AddSharedSecret(
[in] string SharedSecret,
[in, optional] CIM_ServiceAccessPoint Ref ServiceAccessPoint,
[in, optional] string InstanceNamespace,
[out] CIM_SharedSecret Ref SharedSecretPath
);
Parameters
-
SharedSecret [in]
-
Specifies an embedded CIM_SharedSecret instance that specifies properties for the created instance. Required.
-
ServiceAccessPoint [in, optional]
-
Specifies a CIM_ServiceAccessPoint instance to associate with the created shared secret. If NULL, no association is established.
-
InstanceNamespace [in, optional]
-
Specifies the namespace of the created instance. If NULL, the created instance is in the same namespace as the service.
-
SharedSecretPath [out]
-
On return, contains a reference to the created instance.
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)
-
In Use (6)
-
DMTF Reserved (7 )x7FFF)
-
Vendor Specific (0x8000 = value )
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\CIMv2\Storage\iScsiTarget |
MOF |
|
DLL |
|