@GET
  @Path("cluster")
  @Produces(MediaType.APPLICATION_JSON)
  public Response readClusterInfo() {
    LOG.debug("Reading cluster info.");
    Response response = null;
    try {
      JSONObject configurations = readFromCluster("?fields=Clusters/version");
      response = Response.ok(configurations).build();
    } catch (AmbariHttpException ex) {
      LOG.error("Error occurred : ", ex);
      if (ex.getResponseCode() == 403) {
        throw new ServiceFormattedException("You do not have permission to view Capacity Scheduler configuration. Contact your Cluster administrator", ex);
      } else {
        throw new ServiceFormattedException(ex.getMessage(), ex);
      }
    } catch (WebApplicationException ex) {
      LOG.error("Error occurred : ", ex);
      throw ex;
    } catch (Exception ex) {
      LOG.error("Error occurred : ", ex);
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }

    return response;
  }
Gets capacity scheduler configuration by all tags.

@return scheduler configuration
contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java