Share via


AddSharedSecret method of the CIM_ReplicationService class

Introduces a new instance of SharedSecret in the specified namespace and optionally associates it to an instance of a ServiceAccessPoint.

Syntax

uint32 AddSharedSecret(
  [in]  string                     SharedSecret,
  [in]  CIM_ServiceAccessPoint REF ServiceAccessPoint,
  [in]  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]

Associate created instance to this ServiceAccessPoint. If null, no such association is established.

InstanceNamespace [in]

Namespace of created instance. If null, created instance will be in the same namespace as the the service.

SharedSecretPath [out]

Reference to the created instance.

Return value

Completed with No Error (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

DMTF Reserved (7 32767)

Vendor Specific (32768 4294967295)

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_ReplicationService