SetNetworkConstraint method of the MSFT_WvrAdminTasks class

Creates a new replication network constraint for the partnership.

Syntax

uint32 SetNetworkConstraint(
  [in]  string                    SourceComputerName,
  [in]  string                    SourceRGName,
  [in]  string                    DestinationComputerName,
  [in]  string                    DestinationRGName,
  [in]  string                    SourceNWInterfaceIndex[],
  [in]  string                    DestinationNWInterfaceIndex[],
  [out] MSFT_WvrNetworkConstraint Output[]
);

Parameters

SourceComputerName [in]

The source computer name.

SourceRGName [in]

The source RG name.

DestinationComputerName [in]

The destination computer name.

DestinationRGName [in]

The destination RG name.

SourceNWInterfaceIndex [in]

The source NW interface index.

DestinationNWInterfaceIndex [in]

The destination NW Interface index.

Output [out]

On success, contains a collection of MSFT_WvrNetworkConstraint objects.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\StorageReplica
MOF
Wvrcimprov.mof
DLL
Wvrcimprov.dll

See also

MSFT_WvrAdminTasks