@Path(value="/system/bundles") @Produces(value="application/json") public class BundleResource extends RestResource
objectMapper, userService| Constructor and Description |
|---|
BundleResource(BundleService bundleService) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyBundle(String bundleId) |
javax.ws.rs.core.Response |
createBundle(ConfigurationBundle configurationBundle) |
void |
deleteBundle(String bundleId) |
ConfigurationBundle |
exportBundle(ExportBundle exportBundle) |
com.google.common.collect.Multimap<String,ConfigurationBundle> |
listBundles() |
ConfigurationBundle |
showBundle(String bundleId) |
void |
updateBundle(String bundleId,
ConfigurationBundle configurationBundle) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public BundleResource(BundleService bundleService)
@POST
@Timed
@Consumes(value="application/json")
public javax.ws.rs.core.Response createBundle(@NotNull
ConfigurationBundle configurationBundle)
@GET @Timed public com.google.common.collect.Multimap<String,ConfigurationBundle> listBundles()
@GET
@Timed
@Path(value="{bundleId}")
public ConfigurationBundle showBundle(@NotNull @PathParam(value="bundleId")
String bundleId)
throws NotFoundException
NotFoundException@PUT
@Timed
@Path(value="{bundleId}")
@Consumes(value="application/json")
public void updateBundle(@NotNull @PathParam(value="bundleId")
String bundleId,
@NotNull
ConfigurationBundle configurationBundle)
@DELETE
@Path(value="{bundleId}")
@Timed
public void deleteBundle(@NotNull @PathParam(value="bundleId")
String bundleId)
@POST
@Path(value="{bundleId}/apply")
@Timed
public void applyBundle(@NotNull @PathParam(value="bundleId")
String bundleId)
throws NotFoundException
NotFoundException@POST @Path(value="export") @Timed public ConfigurationBundle exportBundle(@NotNull ExportBundle exportBundle) throws NotFoundException
NotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.