Class IndicesResource

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

@RequiresAuthentication @Path("/system/indexer/indices") public class IndicesResource extends RestResource
  • Constructor Details

  • Method Details

    • single

      @GET @Timed @Path("/{index}") @Produces("application/json") public IndexInfo single(@PathParam("index") String index)
    • multiple

      @POST @Timed @Path("/multiple") @Produces("application/json") public List<IndexInfo> multiple(@Valid @NotNull @Valid @NotNull IndicesReadRequest request)
    • open

      @GET @Path("/open") @Timed @RequiresPermissions("indices:read") @Produces("application/json") public OpenIndicesInfo open()
    • closed

      @GET @Timed @Path("/closed") @Produces("application/json") public ClosedIndices closed()
    • reopened

      @GET @Timed @Path("/reopened") @Produces("application/json") public ClosedIndices reopened()
    • all

      @GET @Timed @Produces("application/json") public AllIndices all()
    • reopen

      @POST @Timed @Path("/{index}/reopen") @Produces("application/json") public void reopen(@PathParam("index") String index)
    • close

      @POST @Timed @Path("/{index}/close") @Produces("application/json") public void close(@PathParam("index") @NotNull @NotNull String index) throws TooManyAliasesException
      Throws:
      TooManyAliasesException
    • delete

      @DELETE @Timed @Path("/{index}") @Produces("application/json") public void delete(@PathParam("index") @NotNull @NotNull String index) throws TooManyAliasesException
      Throws:
      TooManyAliasesException
    • indexSetList

      @GET @Timed @Path("/{indexSetId}/list") @Produces("application/json") public AllIndices indexSetList(@PathParam("indexSetId") String indexSetId)
    • indexSetOpen

      @GET @Path("/{indexSetId}/open") @Timed @RequiresPermissions("indices:read") @Produces("application/json") public OpenIndicesInfo indexSetOpen(@PathParam("indexSetId") String indexSetId)
    • indexSetClosed

      @GET @Timed @Path("/{indexSetId}/closed") @Produces("application/json") public ClosedIndices indexSetClosed(@PathParam("indexSetId") String indexSetId)
    • indexSetReopened

      @GET @Timed @Path("/{indexSetId}/reopened") @Produces("application/json") public ClosedIndices indexSetReopened(@PathParam("indexSetId") String indexSetId)