Retrieves a specific recovery plan.

Synopsis

RecoveryPlan getRecoveryPlan(String name)

name is the name of a Recovery Plan.

RecoveryPlan is a Recovery Plan, which includes plan information, peer recovery plan, recovery mode, recovery plan location, recovery prompt, and recovery state. For more information, see Recovery Plan.

Faults

  • RecoveryPlanNotFound
  • RuntimeFault

See Faults in Site Recovery Manager API for more details.

Example for GetRecoveryPlan

ManagedObjectReference plan = srmPortType.getRecoveryPlan(
  ManagedObjectReference _this,
  String name);

Where ManagedObjectReference _this = _recoveryPlanRootFolderRef;
where _recoveryPlanRootFolderRef can be taken from:
  SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef);
ManagedObjectReference _recoveryRef = content.getRecovery();
ManagedObjectReference _recoveryPlanRootFolderRef = srmPortType.getRecoveryPlanRootFolder(_recoveryRef);