Getrecoveryresult; Getresultcount - VMware VC-SRM4-A - vCenter Site Recovery Manager Developer's Manual

Site recovery manager api
Table of Contents

Advertisement

Site Recovery Manager API Developer's Guide
Example 3-35. Method to get recovery plan history
history = _service.GetHistory(_srm.recovery, plan);
Parameters and return value:
_srm.recovery – managed object reference to an SrmRecovery object
plan – managed object reference to an SrmRecoveryPlan object
history – managed object reference to an SrmRecoveryHistory managed object to access recovery result

GetRecoveryResult

This method retrieves recovery results for a given recovery plan. Use this method to get the key so subsequent 
methods can get recovery results history.
Example 3-36. Method to get recovery plan history
result[] = _service.GetRecoveryResult(_srm.history, length);
Parameters and return value:
_srm.history – managed object reference to an SrmRecoveryHistory object
length – integer specifying the maximum number of results to retrieve
result[]– 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, failover, reprotect, revert)
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

GetResultCount

This method retrieves the number of stored (XML) results for the specified recovery plan and peer plan history.
Example 3-37. Method to get recovery result history count
entries = _service.GetResultCount(_srm.history);
Parameters and return value:
_srm.history – managed object reference to an SrmRecoveryHistory object
entries – integer specifying the number of stored (XML) history results for this plan
30
VMware, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vcenter site recovery manager 5.0

Table of Contents