Class SidecarResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.plugins.sidecar.rest.resources.SidecarResource
All Implemented Interfaces:
PluginRestResource

@Path("/sidecars") @Consumes("application/json") @Produces("application/json") public class SidecarResource extends RestResource implements PluginRestResource
  • Field Details

    • SEARCH_FIELD_MAPPING

      protected static final com.google.common.collect.ImmutableMap<String,SearchQueryField> SEARCH_FIELD_MAPPING
  • Constructor Details

  • Method Details

    • all

      @GET @Timed @Path("/all") public SidecarListResponse all()
    • sidecars

      @GET @Timed public SidecarListResponse sidecars(@QueryParam("page") @DefaultValue("1") int page, @QueryParam("per_page") @DefaultValue("50") int perPage, @QueryParam("query") @DefaultValue("") String query, @DefaultValue("node_name") @QueryParam("sort") String sort, @DefaultValue("asc") @QueryParam("order") String order, @QueryParam("only_active") @DefaultValue("false") boolean onlyActive)
    • get

      @GET @Timed @Path("/{sidecarId}") public SidecarSummary get(@PathParam("sidecarId") @NotEmpty @NotEmpty String sidecarId)
    • register

      @PUT @Timed @Path("/{sidecarId}") public javax.ws.rs.core.Response register(@PathParam("sidecarId") @NotEmpty @NotEmpty String nodeId, @Valid @NotNull @Valid @NotNull RegistrationRequest request, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("X-Graylog-Sidecar-Version") @NotEmpty @NotEmpty String sidecarVersion) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • assignConfiguration

      @PUT @Timed @Path("/configurations") public javax.ws.rs.core.Response assignConfiguration(@Valid @NotNull @Valid @NotNull NodeConfigurationRequest request) throws javax.ws.rs.NotFoundException
      Throws:
      javax.ws.rs.NotFoundException