Class DataNodeApiProxyResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.datanodes.DataNodeApiProxyResource

@RequiresAuthentication @Produces("application/json") @Timed @Path("/datanodes/{hostname}/opensearch/{path: .*}") @RequiresPermissions("datanode:opensearchproxy") public class DataNodeApiProxyResource extends RestResource
  • Constructor Details

    • DataNodeApiProxyResource

      @Inject public DataNodeApiProxyResource(ProxyRequestAdapter proxyRequestAdapter, @Named("datanode_proxy_api_allowlist") boolean enableAllowlist)
  • Method Details

    • requestGet

      @GET public jakarta.ws.rs.core.Response requestGet(@PathParam("path") String path, @PathParam("hostname") String hostname, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Throws:
      IOException
    • requestPost

      @POST public jakarta.ws.rs.core.Response requestPost(@PathParam("path") String path, @PathParam("hostname") String hostname, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Throws:
      IOException
    • requestPut

      @PUT public jakarta.ws.rs.core.Response requestPut(@PathParam("path") String path, @PathParam("hostname") String hostname, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Throws:
      IOException
    • requestDelete

      @DELETE public jakarta.ws.rs.core.Response requestDelete(@PathParam("path") String path, @PathParam("hostname") String hostname, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Throws:
      IOException