public String[] listAllRegions() {
    if (distrRegionMap.values().size() == 0) {
      return ManagementConstants.NO_DATA_STRING;
    }

    List<String> listOfRegions = new ArrayList<>();
    for (final DistributedRegionBridge bridge : distrRegionMap.values()) {
      listOfRegions.add(bridge.getName());
    }

    return listOfRegions.toArray(new String[0]);
  }
@return a list of region names hosted on the system
geode-core/src/main/java/org/apache/geode/management/internal/beans/DistributedSystemBridge.java