Class IndexSetsResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.system.indexer.IndexSetsResource

@RequiresAuthentication @Path("/system/indices/index_sets") @Produces("application/json") public class IndexSetsResource extends RestResource
  • Constructor Details

  • Method Details

    • list

      @GET @Timed public IndexSetResponse list(@QueryParam("skip") @DefaultValue("0") int skip, @QueryParam("limit") @DefaultValue("0") int limit, @QueryParam("stats") @DefaultValue("false") boolean computeStats)
    • search

      @GET @Path("search") @Timed public IndexSetResponse search(@QueryParam("searchTitle") String searchTitle, @QueryParam("skip") @DefaultValue("0") int skip, @QueryParam("limit") @DefaultValue("0") int limit, @QueryParam("stats") @DefaultValue("false") boolean computeStats)
    • globalStats

      @GET @Path("stats") @Timed public IndexSetStats globalStats()
    • get

      @GET @Path("{id}") @Timed public IndexSetSummary get(@PathParam("id") String id)
    • indexSetStatistics

      @GET @Path("{id}/stats") @Timed public IndexSetStats indexSetStatistics(@PathParam("id") String id)
    • save

      @POST @Timed @RequiresPermissions("indexsets:create") @Consumes("application/json") public IndexSetSummary save(@Valid @NotNull @Valid @NotNull IndexSetSummary indexSet)
    • update

      @PUT @Path("{id}") @Timed public IndexSetSummary update(@PathParam("id") String id, @Valid @NotNull @Valid @NotNull IndexSetUpdateRequest updateRequest)
    • setDefault

      @PUT @Path("{id}/default") @Timed public IndexSetSummary setDefault(@PathParam("id") String id)
    • delete

      @DELETE @Path("{id}") @Timed public void delete(@PathParam("id") String id, @QueryParam("delete_indices") @DefaultValue("true") boolean deleteIndices)