GetProtectionStatus
This method gets the virtual machine protection status after completion of ProtectVms or UnprotectVms.
Synopsis
ProtectionGroup.VmProtectionInfo[] getProtectionStatus()
VmProtectionInfo[] – the completed protection status of VMs that were requested to be protected or unprotected.
The VmProtectionInfo.ProtectionStatus has the following fields:
Fields | Description |
---|---|
canBeProtected | the VM is able to be protected, but is not currently |
canNotBeProtected | the VM is not able to be protected |
isProtected | the VM is already protected |
needsConfiguration | the VM must be configured or repaired before it may be protected. Please check the faults property for information about any additional prerequisites. |
Faults
- RuntimeFault
Example for GetProtectionStatus
protectionInfo[] = _service.GetProtectionStatus(_svcRef);