UnprotectVms
This method removes virtual machines from their protection group. With an array-based replication, the protection group is determined by datastore location of the virtual machines. With vSphere Replication, you must also UnassociateVms from the protection group. With the vVol replication, the protection group is determined by replication groups of the virtual machines.
Synopsis
ProtectionTask unprotectVms(vim.VirtualMachine[] vms)
vms[] is an array Virtual Machine objects not to protect.
ProtectionTask is the task object to monitor for status of the requested virtual machines.
Faults
- InvalidState, if a specified VM was not being protected.
- RuntimeFault
Example for UnprotectVms
SrmProtectionTaskRef = _service.UnprotectVms(_svcRef, vm[] );