GetReplicationRelationshipInstances method of the CIM_ReplicationService class

Get (or start a job to get) all of the synchronization relationships known to the processing replication service. If a job is started, once the job completes, examine the AffectedJobElement associations for the synchronization relationships. This method is similar to GetReplicationRelationships, except that this method returns the instances as opposed to object paths.

Syntax

uint32 GetReplicationRelationshipInstances(
  [in]  uint16              Type,
  [in]  uint16              SyncType,
  [in]  uint16              Mode,
  [in]  uint16              Locality,
  [in]  uint16              CopyState,
  [out] CIM_ConcreteJob REF Job,
  [out] string              Synchronizations[]
);

Parameters

Type [in]

The type of synchronization relationships, for example, StorageSynchronized or GroupSynchronized. If this parameter is not supplied, all such relationships are retrieved.

StorageSynchronized (2)

GroupSynchronized (3)

DMTF Reserved

4 32767

Vendor Specific

32768 65535

SyncType [in]

Describes the desired synchronization type. If this parameter is not specified, all SyncType are retrieved.

DMTF Reserved

0 5

Mirror (6)

Snapshot (7)

Clone (8)

DMTF Reserved

9 32767

Vendor Specific

32768 65535

Mode [in]

Describes the desired mode. If this parameter is not supplied, both synchronous and asynchronous modes are retrieved.

Synchronous (2)

Asynchronous (3)

DMTF Reserved

4 32767

Vendor Specific

32768 65535

Locality [in]

Describes the desired locality. If this parameter is not supplied, all replication relationships are retrieved, regardless of the locality of elements. Local only: Source and target elements are contained in the same system. Remote only: Source and target elements are contained in two different systems.

Local only (2)

Remote only (3)

DMTF Reserved

4 32767

Vendor Specific

32768 65535

CopyState [in]

Only retrieve synchronization relationships that are currently in this CopyState. If this parameter is not supplied, relationships are retrieved regardless of their current CopyState.

Job [out]

Reference to the job (may be NULL if the task completed).

Synchronizations [out]

An array of instances found.

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 4095)

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 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