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
  • Constructor Details

    • SupportBundleResource

      @Inject public SupportBundleResource(SupportBundleService supportBundleService)
  • 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