Class SupportBundleClusterResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.shared.rest.resources.ProxiedResource
org.graylog2.rest.resources.system.debug.bundle.SupportBundleClusterResource
@RequiresAuthentication
@Path("/cluster/debug/support")
@Produces("application/json")
public class SupportBundleClusterResource
extends ProxiedResource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graylog2.shared.rest.resources.ProxiedResource
ProxiedResource.CallResult<ResponseType>, ProxiedResource.MasterResponse<ResponseType>, ProxiedResource.NodeResponse<ResponseType> -
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.ProxiedResource
nodeService, remoteInterfaceProviderFields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService -
Constructor Summary
ConstructorsConstructorDescriptionSupportBundleClusterResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, javax.ws.rs.core.HttpHeaders httpHeaders, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBundle(javax.ws.rs.container.AsyncResponse asyncResponse) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponseMethods inherited from class org.graylog2.shared.rest.resources.ProxiedResource
authenticationToken, createRemoteInterface, doNodeApiCall, getAuthenticationToken, getDefaultProxyCallTimeout, getForAllNodes, getForAllNodes, getForAllNodes, getForAllNodes, processAsync, requestOnAllNodes, requestOnAllNodes, requestOnAllNodes, requestOnAllNodes, requestOnLeader, requestOnLeader, stripCallResultMethods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
SupportBundleClusterResource
@Inject public SupportBundleClusterResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService)
-
-
Method Details
-
getClusterManifest
@GET @Path("/manifest") @RequiresPermissions("supportbundle:read") public Map<String,ProxiedResource.CallResult<SupportBundleNodeManifest>> getClusterManifest() -
buildBundle
@POST @Path("/bundle/build") @RequiresPermissions("supportbundle:create") @Timed public void buildBundle(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse) -
listBundles
@GET @Path("/bundle/list") @RequiresPermissions("supportbundle:read") public List<BundleFile> listBundles() throws IOException- Throws:
IOException
-
download
@GET @Path("/bundle/download/{filename}") @RequiresPermissions("supportbundle:read") @Produces("application/octet-stream") public javax.ws.rs.core.Response download(@PathParam("filename") String filename) throws IOException - Throws:
IOException
-
delete
@DELETE @Path("/bundle/{filename}") @RequiresPermissions("supportbundle:create") public javax.ws.rs.core.Response delete(@PathParam("filename") String filename) throws IOException - Throws:
IOException
-