Share via


AddReplicationEntity method of the MSISCSITARGET_ReplicationService class

Adds a new instance of CIM_ReplicationEntity in the specified namespace.

This method is inherited from the CIM_ReplicationService class.

Syntax

uint32 AddReplicationEntity(
  [in]  string                    ReplicationEntity,
  [in]  boolean                   Persistent,
  [in]  string                    InstanceNamespace,
  [out] CIM_ReplicationEntity Ref ReplicationEntityPath
);

Parameters

ReplicationEntity [in]

Specifies an embedded CIM_ReplicationEntity instance that specifies properties for the created instance.

Persistent [in]

Specifies how long the instance persists. If True, the instance must persist across the management server reboot. If NULL, the value is based on the default value of the class in the Managed Object Format (MOF). Use the CimSession.ModifyInstance method to change the value after the instance is created.

InstanceNamespace [in]

Specifies the namespace of the created instance. If NULL, the created instance will be in the same namespace as the replication service.

ReplicationEntityPath [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
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_ReplicationService