GetRecoveryResult

Retrieves recovery results for a given run of this recovery plan. Use this method to get the key so subsequent methods can get recovery results history.

Synopsis

RecoveryResult[] getRecoveryResult(int length)

length is the maximum number of results to retrieve.

RecoveryResult[]is an array of recovery results for this recovery plan or its peer plan, including:
  • description – summary of the plan at the time of this run
  • errorCount – count of error‐level faults that were generated by the operation
  • executionTimeInSeconds– total execution time in seconds
  • key – unique key for this recovery result, useful for subsequent methods
  • name – the recovery plan’s name at the time of this run
  • plan – recovery plan that this result covers
  • resultState – the result state, which is only the final state indicating completion or failure
  • runMode – mode of recovery when plan was initiated (test, recovery, reprotect)
  • startTime, stopTime – time when the recovery was started and when it completed or stopped
  • totalPausedTimeInSeconds – total time the recovery plan was paused
  • warningCount – count of warning‐level faults that were generated by the operation

Faults

  • RuntimeFault
  • InvalidArgument

See Faults in Site Recovery Manager for more details.

Example for GetRecoveryResult

result[] = _service.GetRecoveryResult(_srm.history, length);