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
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionIndicesResource
(Indices indices, NodeInfoCache nodeInfoCache, IndexSetRegistry indexSetRegistry) -
Method Summary
Modifier and TypeMethodDescriptionall()
void
closed()
void
indexSetClosed
(String indexSetId) indexSetList
(String indexSetId) indexSetOpen
(String indexSetId) indexSetReopened
(String indexSetId) multiple
(@Valid @NotNull IndicesReadRequest request) open()
void
reopened()
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
IndicesResource
@Inject public IndicesResource(Indices indices, NodeInfoCache nodeInfoCache, IndexSetRegistry indexSetRegistry)
-
-
Method Details
-
single
-
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
-
reopened
-
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)
-