Class SupportBundleResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.system.debug.bundle.SupportBundleResource
@RequiresAuthentication
@Path("/system/debug/support")
@Produces("application/json")
public class SupportBundleResource
extends RestResource
-
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
buildBundle
(javax.ws.rs.core.HttpHeaders httpHeaders) javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
getLogFile
(String id) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
SupportBundleResource
-
-
Method Details
-
getNodeManifest
@GET @Path("/manifest") @Produces("application/json") @RequiresPermissions("supportbundle:read") public SupportBundleNodeManifest getNodeManifest() -
getLogFile
@GET @Path("/logfile/{id}") @RequiresPermissions("supportbundle:read") @Produces("application/octet-stream") public javax.ws.rs.core.Response getLogFile(@PathParam("id") String id) -
buildBundle
@POST @Path("/bundle/build") @Timed @RequiresPermissions("supportbundle:create") @Produces("application/json") public javax.ws.rs.core.Response buildBundle(@Context javax.ws.rs.core.HttpHeaders httpHeaders) -
listBundles
@GET @Path("/bundle/list") @RequiresPermissions("supportbundle:read") public List<BundleFile> listBundles() -
download
@GET @Path("/bundle/download/{filename}") @RequiresPermissions("supportbundle:read") @Produces("application/octet-stream") public javax.ws.rs.core.Response download(@PathParam("filename") String filename) -
delete
@DELETE @Path("/bundle/{filename}") @RequiresPermissions("supportbundle:create") public javax.ws.rs.core.Response delete(@PathParam("filename") String filename) throws IOException - Throws:
IOException
-