public void getOptimizerGroups(Context ctx) {
    List<Map<String, String>> result =
        optimizerManager.listResourceGroups().stream()
            .filter(
                resourceGroup ->
                    !InternalContainers.UNMANAGED_CONTAINER_NAME.equals(
                        resourceGroup.getContainer()))
            .map(
                e -> {
                  Map<String, String> mapObj = new HashMap<>();
                  mapObj.put("optimizerGroupName", e.getName());
                  return mapObj;
                })
            .collect(Collectors.toList());
    ctx.json(OkResponse.of(result));
  }
get optimizerGroup: optimizerGroupId, optimizerGroupName url = /optimizerGroups.
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/OptimizerGroupController.java