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
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService -
Constructor Summary
ConstructorsConstructorDescriptionDataNodeApiProxyResource(ProxyRequestAdapter proxyRequestAdapter, boolean enableAllowlist) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponserequestDelete(String path, String hostname, jakarta.ws.rs.container.ContainerRequestContext requestContext) jakarta.ws.rs.core.ResponserequestGet(String path, String hostname, jakarta.ws.rs.container.ContainerRequestContext requestContext) jakarta.ws.rs.core.ResponserequestPost(String path, String hostname, jakarta.ws.rs.container.ContainerRequestContext requestContext) jakarta.ws.rs.core.ResponserequestPut(String path, String hostname, jakarta.ws.rs.container.ContainerRequestContext requestContext) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
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
-