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 a ready state
testing
the protection group is currently being tested
While these states share a common type, they are specific to whether this Group is the Protection Group itself or the mirror of the group on the remote site. The Protection Group States are
ready
and
failedOver
. The Mirror States
partiallyRecovered
,
recovering
,
testing
,
shadowing
, and
recovered
.

Faults

  • RuntimeFault
Example for GetProtectionState
SrmProtectionGroupProtectionState state = srmPortType.getProtectionState(ManagedObjectReference _this); Where ManagedObjectReference _this = _protectionGroupRef; where _protectionGroupRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection(); List < ManagedObjectReference > groups = srmPortType.listProtectionGroups(_protectionRef); _protectionGroupRef = groups.get(0);