RecoveryPlanGetPeer

This method retrieves a recovery plan peer, which is the plan at the paired site rather than at the local site.

Synopsis

RecoveryPlan.Peer RecoveryPlanGetPeer()

RecoveryPlan.Peer is the peer recovery plan at the paired site.

  • plan references to the SrmRecoveryPlan managed object.
  • state is the same enumeration as for RecoveryPlanGetInfo. For more information, see RecoveryPlanGetInfo.

Faults

  • RuntimeFault

For information about the faults that Site Recovery Manager throws, see Faults in Site Recovery Manager API.

Example for RecoveryPlanGetPeer

SrmRecoveryPlanPeer peerPlan = srmPortType.recoveryPlanGetPeer(ManagedObjectReference _this);

	Where ManagedObjectReference _this = _recoveryPlan;
	where _recoveryPlan can be taken from:
SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef);
ManagedObjectReference _recoveryRef = content.getRecovery();
List<ManagedObjectReference> plans = srmPortType.listPlans(
        _recoveryRef);
ManagedObjectReference _recoveryPlan = plans.get(0);