SetRecoverySettings
Updates the virtual machines’ Recovery
Settings. This method updates the specified virtual machine's Recovery Settings with values
contained in the supplied
RecoverySettings
object. This class modifies
the recovery settings available through the external API. The VmIpCustomization
data object
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
. Synopsis
void setRecoverySettings(vim.VirtualMachine vm, RecoverySettings settings)
vm
is the Virtual
Machine which Recovery Settings are to be updated.
settings
is the
Recovery Settings to update the VM.
RecoverySettings
is the VM recovery settings for presentation in the
user interface. For more information, see GetRecoverySettings.Faults
- DependencyConflict
- InvalidArgument
- RecoveryPlanLocked
- RecoveryPlanNotFound
- RuntimeFault
- VersionConflict
- VmNotFoundInRecoveryPlan
See
Faults in Site Recovery Manager API
for more details.