次の方法で共有


GetReplicationRelationships method of the MSISCSITARGET_ReplicationService class

Gets all of the specified synchronization relationships that are available to the processing replication service.

This method is inherited from the CIM_ReplicationService class.

Syntax

uint32 GetReplicationRelationships(
  [in, optional] uint16               Type,
  [in, optional] uint16               SyncType,
  [in, optional] uint16               Mode,
  [in, optional] uint16               Locality,
  [in, optional] uint16               CopyState,
  [out]          CIM_ConcreteJob Ref  Job,
  [out]          CIM_Synchronized Ref Synchronizations[]
);

Parameters

Type [in, optional]

Specifies the type of synchronization relationships to retrieve. If NULL, all relationship types are retrieved.

The possible values are.

StorageSynchronized (2)

GroupSynchronized (3)

DMTF Reserved

4 0x7FFF

Vendor Specific

0x8000 = *value*

SyncType [in, optional]

Specifies the synchronization type to retrieve. If NULL, the method returns relationships with all synchronization types.

The possible values are.

DMTF Reserved

*value* = 5

Mirror (6)

Snapshot (7)

Clone (8)

DMTF Reserved

9 0x7FFF

Vendor Specific

0x8000 = *value*

Mode [in, optional]

Specifies the mode of relationships to return. If NULL, the method returns relationships with either mode.

The possible values are.

Synchronous (2)

Asynchronous (3)

DMTF Reserved

4 0x7FFF

Vendor Specific

0x8000 = *value*

Locality [in, optional]

Specifies the locality of elements to return. If NULL, replication relationships are retrieved regardless of the locality of elements.

Local only (2)

Source and target elements are in the same system.

Remote only (3)

Source and target elements are contained in two different systems.

DMTF Reserved

Reserved.

Vendor Specific

Reserved.

CopyState [in, optional]

Specifies the CIM_Synchronized.CopyState property value to retrieve. If NULL, relationships are retrieved regardless of their CopyState property.

Job [out]

On return, contains a reference to the job, which can be NULL, if the job is completed.

If a job is started and after the job is completed, you can examine the CIM_AffectedJobElement associations for targets.

Synchronizations [out]

On return, contains an array of elements that are found.

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

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 0x7FFF)

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

GetReplicationRelationshipInstances

MSISCSITARGET_AffectedJobElement