AnswerPrompt

This method answers the current prompt being displayed in a recovery plan. The operation requires one of these privileges depending on recovery mode,
VcDr.RecoveryProfile.com.vmware.vcDr.Failover
for a real recovery and
VcDr.RecoveryProfile.com.vmware.vcDr.Run
for a test recovery.

Synopsis

void answerPrompt(String key, boolean cancelVmRecovery, @optional String response)
key
is a string with the key value from the recovery prompt.
cancelVmRecovery
is true if you want to halt further processing on this virtual machine, false otherwise.
response
is a response to the prompt that will be recorded.

Faults

  • InvalidState, if the recovery plan is not running.
  • PromptNotFound, if no prompt with that key exists.
  • RuntimeFault
For information about the faults that
Site Recovery Manager
throws, see Faults in Site Recovery Manager API.
Example for AnswerPrompt
srmPortType.answerPrompt( ManagedObjectReference _this, String key, boolean cancelVmRecovery, String response); 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);