@Path("{clusterName}/upgrades")
  public UpgradeService getUpgradeService(
      @Context jakarta.ws.rs.core.Request request,
      @PathParam("clusterName") String clusterName) {
    return new UpgradeService(clusterName);
  }
Gets the services for upgrades.

@param request the request
@param clusterName the cluster name

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