GetProtectionState

Gets current state of the specified protection group. Not to be confused with GetProtectionStatus which returns a virtual machine’s (un)protect status, not the state of an entire protection group.

Synopsis

ProtectionGroup.ProtectionState getProtectionState( )

ProtectionState is an enumeration for the protection group state:

Fields Description
failedOver the protection group has been failed over to the remote site
partiallyRecovered the protection group is partially recovered
ready the protection group is in a ready state
recovered the protection group has been recovered
recovering the protection group is in the process of being recovered
shadowing this protection group is shadowing the remote site group that is in ready state
testing the protection group is currently being tested

Faults

  • RuntimeFault

Example for GetProtectionState

protState = _service.GetProtectionState(_svcPtGrp);