Class ActionResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.sidecar.rest.resources.ActionResource
- All Implemented Interfaces:
PluginRestResource
@Path("/sidecar/action")
@Consumes("application/json")
@Produces("application/json")
@RequiresAuthentication
public class ActionResource
extends RestResource
implements PluginRestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
setAction
(@NotEmpty String sidecarId, @Valid @NotNull List<CollectorAction> 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
-
ActionResource
-
-
Method Details
-
getAction
@GET @Timed @Path("/{sidecarId}") @RequiresPermissions("sidecars:read") public List<CollectorAction> getAction(@PathParam("sidecarId") @NotEmpty @NotEmpty String sidecarId) -
setAction
@PUT @Timed @Path("/{sidecarId}") @RequiresPermissions("sidecars:update") public javax.ws.rs.core.Response setAction(@PathParam("sidecarId") @NotEmpty @NotEmpty String sidecarId, @Valid @NotNull @Valid @NotNull List<CollectorAction> request)
-