Freigeben über


CreatePartnership method of the MSFT_WvrAdminTasks class

Creates a replication partnership between two existing replication groups.

Syntax

uint32 CreatePartnership(
  [in]  string                         SourceComputerName,
  [in]  string                         SourceRGName,
  [in]  string                         DestinationComputerName,
  [in]  string                         DestinationRGName,
  [in]  uint32                         ReplicationMode,
  [in]  boolean                        PreventReplication,
  [in]  boolean                        Seeded,
  [in]  uint32                         AsyncRPO,
  [in]  boolean                        EnableEncryption,
  [out] MSFT_WvrReplicationPartnership Output[]
);

Parameters

SourceComputerName [in]

The FQDN or NetBIOS name of the source computer.

SourceRGName [in]

The name of the source replication group.

DestinationComputerName [in]

The FQDN or NetBIOS name of the destination computer.

DestinationRGName [in]

The name of the destination replication group.

ReplicationMode [in]

Whether the replication is performed synchronously or asynchronously.

The possible values are.

Sync (1)

Async (2)

PreventReplication [in]

true to prevent replication.

Seeded [in]

TBD

AsyncRPO [in]

TBD

EnableEncryption [in]

true to enable encryption; otherwise, false.

Output [out]

Returns the resulting MSFT_WvrReplicationPartnership embedded instance.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\StorageReplica
Header
Wmp.h
MOF
WVRCimProv.Mof
DLL
WvrCimProv.dll

See also

MSFT_WvrAdminTasks