Recovery Plan This section covers the interfaces to recovery plans. RecoveryPlanGetInfoThis method retrieves status information about a given recovery plan, including the name of the recovery plan and its current state. RecoveryPlanGetPeerThis method retrieves a recovery plan peer, which is the plan at the paired site rather than at the local site. StartThis method starts or reconfigures the given recovery plan, or tests and cleans it up, depending on the mode specified. This 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. CancelThis method cancels this recovery plan. It can take some time to cancel a recovery plan depending on its state. This 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. ListPromptsThis method lists the current prompts that are waiting on user input. Prompts appear in the order in which virtual machines are scheduled to power on. When a prompt step is reached, the recovery plan remains in a waiting state until the user answers the prompt or a program calls AnswerPrompt. AnswerPromptThis 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. RecoveryPlanGetParentFolderGets the parent folder (or root) for a recovery plan. GetRecoverySettingsGets the recovery settings for the specified virtual machine. SetRecoverySettingsUpdates the virtual machines’ Recovery Settings. This method updates the specified virtual machine's Recovery Settings with values contained in the supplied Recovery Settings object. This class modifies the recovery settings available to the external API, VmIpCustomization. The VmIpCustomization API allows user to configure the IP address and corresponding DNS, WINS of the virtual machine, after the migration is complete. You can disable IP customization by setting VmIpCustomization to nullptr or by not setting IpCustomizationSpecMapping within VmIpCustomization. AddProtectionGroupAdds a protection group to the recovery plan. GetRecoveryResultRetrieves 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. GetResultCountRetrieves the total number of stored results. This include historical results from both the plan and its peer plan if the sites are connected. GetResultLengthRetrieves the length of the XML result document for the requested Recovery Result. RetrieveStatusRetrieves an XML representation of the specified historical run of the referenced recovery plan. This XML document is transmitted in chunks limited by the maximum length of a string in the transport layer. You specify what line to start at and how many lines to return. AddTestNetworkMappingToRecoveryPlanThe AddTestNetworkMappingToRecoveryPlan method adds a test network mapping to a recovery plan. RemoveTestNetworkMappingFromRecoveryPlanThe RemoveTestNetworkMappingFromRecoveryPlan method removes a test network mapping from a recovery plan. RemoveProtectionGroupFromRecoveryPlanThe RemoveProtectionGroupFromRecoveryPlan method removes a protection group from a recovery plan. RecoveryPlanGetLocationThe RecoveryPlanGetLocation method checks whether the recovery plan is hosted locally or on the paired site. RecoveryPlanHasRunningTaskThe RecoveryPlanHasRunningTask method checks whether there is a task that is associated with the recovery plan. Parent topic: Logical Order API Usage