@Path("{clusterName}/upgrade_summary")
  public UpgradeSummaryService getUpgradeSummaryService(
      @Context jakarta.ws.rs.core.Request request,
      @PathParam("clusterName") String clusterName) {
    return new UpgradeSummaryService(clusterName);
  }
Gets a list of upgrade summaries.

@param request the request
@param clusterName the cluster name

@return the upgrade summary service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java