@GET
  @Produces(MediaType.APPLICATION_JSON)
  public Response readLatestConfiguration() {
    LOG.debug("reading all configurations");
    Response response = null;
    try {
      String versionTag = getVersionTag();
      JSONObject configurations = getConfigurationFromAmbari(versionTag);
      response = Response.ok(configurations).build();
    } 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.

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