Class AdministrationResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.sidecar.rest.resources.AdministrationResource
- All Implemented Interfaces:
PluginRestResource
@Path("/sidecar/administration")
@Consumes("application/json")
@Produces("application/json")
public class AdministrationResource
extends RestResource
implements PluginRestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionAdministrationResource
(SidecarService sidecarService, ConfigurationService configurationService, CollectorService collectorService, ActionService actionService, AdministrationFiltersFactory administrationFiltersFactory, ClusterConfigService clusterConfigService, SidecarStatusMapper sidecarStatusMapper) -
Method Summary
Modifier and TypeMethodDescriptionadministration
(@Valid @NotNull AdministrationRequest request) javax.ws.rs.core.Response
setAction
(@Valid @NotNull BulkActionsRequest request) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
AdministrationResource
@Inject public AdministrationResource(SidecarService sidecarService, ConfigurationService configurationService, CollectorService collectorService, ActionService actionService, AdministrationFiltersFactory administrationFiltersFactory, ClusterConfigService clusterConfigService, SidecarStatusMapper sidecarStatusMapper)
-
-
Method Details
-
administration
@POST @Timed public SidecarListResponse administration(@Valid @NotNull @Valid @NotNull AdministrationRequest request) -
setAction
@PUT @Timed @Path("/action") public javax.ws.rs.core.Response setAction(@Valid @NotNull @Valid @NotNull BulkActionsRequest request)
-