This method lists the configured protection groups.

Synopsis

SrmProtectionGroup[] listProtectionGroups()

SrmProtectionGroup[] is an array of managed object references to all the SrmProtectionGroup managed objects that are currently configured. For more information, see Protection Group.

Faults

  • RuntimeFault

See Faults in Site Recovery Manager API for more details.

Method to list protection groups

List < ManagedObjectReference > groups = srmPortType.listProtectionGroups(ManagedObjectReference _this);

Where ManagedObjectReference _this = _protectionRef;
where _protectionRef can be taken from:
  SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef);
ManagedObjectReference _protectionRef = content.getProtection();