Given an SrmProtectionGroup on the local site, this method retrieves the SrmProtectionGroup at the peer site.
Synopsis
ProtectionGroup.Peer getPeer( )
ProtectionGroup.Peer is the peer protection group from the remote site.
Peer is the peer protection group object at the paired site. It has the following fields:
Field | Description |
---|---|
group | ProtectionGroup at that site. |
state | Last known state of this protection group. If the connection between sites is down, this value might be out-of-date. |
Faults
- RuntimeFault
See Faults in Site Recovery Manager API for more details.
Example for GetPeer
SrmProtectionGroupPeer peerGroup = srmPortType.getPeer(ManagedObjectReference _this); Where ManagedObjectReference _this = _protectionGroupRef; where _protectionGroupRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection(); List < ManagedObjectReference > groups = srmPortType.listProtectionGroups(_protectionRef); _protectionGroupRef = groups.get(0);