Use the ConnectedPairings Property
Use the ConnectedPairings property to extract connection information that you might need for vSphere Replication SDK operations.
The ConnectedPairings property is a key-value dictionary that contains information about all available vSphere Replication pairings. Use ConnectedPairings to extract information such as PairingID and VcServerID, which is required for some vSphere Replication SDK operations.
Prerequisites
Verify that you have a valid VrServerConnection
. This example uses the $vr2 connection variable from Connect to a Local and to a Remote vSphere Replication Server.