@Path(value="/system/content_packs") @Produces(value="application/json") public class ContentPackResource extends RestResource
configuration, userService| Constructor and Description |
|---|
ContentPackResource(ContentPackService contentPackService,
ContentPackPersistenceService contentPackPersistenceService,
ContentPackInstallationPersistenceService contentPackInstallationPersistenceService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createContentPack(@NotNull @Valid ContentPack contentPack) |
void |
deleteContentPack(ModelId contentPackId) |
void |
deleteContentPack(ModelId contentPackId,
int revision) |
javax.ws.rs.core.Response |
deleteContentPackInstallationById(ModelId contentPackId,
String installationId) |
ContentPack |
downloadContentPackRevisions(ModelId id,
int revision) |
ContentPackResponse |
getContentPackRevisions(ModelId id,
int revision) |
ContentPackInstallation |
installContentPack(ModelId id,
int revision,
@Valid @NotNull ContentPackInstallationRequest contentPackInstallationRequest) |
ContentPackInstallationsResponse |
listContentPackInstallationsById(ModelId id) |
ContentPackRevisions |
listContentPackRevisions(ModelId id) |
ContentPackList |
listContentPacks() |
ContentPackList |
listLatestContentPacks() |
ContentPackUninstallDetails |
uninstallDetails(ModelId id,
String installationId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public ContentPackResource(ContentPackService contentPackService, ContentPackPersistenceService contentPackPersistenceService, ContentPackInstallationPersistenceService contentPackInstallationPersistenceService)
@GET @Timed public ContentPackList listContentPacks()
@GET @Path(value="latest") @Timed public ContentPackList listLatestContentPacks()
@GET
@Path(value="{contentPackId}")
@Timed
public ContentPackRevisions listContentPackRevisions(@PathParam(value="contentPackId")
ModelId id)
@GET
@Path(value="{contentPackId}/{revision}")
@Timed
public ContentPackResponse getContentPackRevisions(@PathParam(value="contentPackId")
ModelId id,
@PathParam(value="revision")
int revision)
@GET
@Path(value="{contentPackId}/{revision}/download")
@Timed
public ContentPack downloadContentPackRevisions(@PathParam(value="contentPackId")
ModelId id,
@PathParam(value="revision")
int revision)
@POST
@Timed
@Consumes(value="application/json")
public javax.ws.rs.core.Response createContentPack(@NotNull @Valid
@NotNull @Valid ContentPack contentPack)
@DELETE
@Timed
@Path(value="{contentPackId}")
public void deleteContentPack(@PathParam(value="contentPackId")
ModelId contentPackId)
@DELETE
@Timed
@Path(value="{contentPackId}/{revision}")
public void deleteContentPack(@PathParam(value="contentPackId")
ModelId contentPackId,
@PathParam(value="revision")
int revision)
@POST
@Path(value="{contentPackId}/{revision}/installations")
@Timed
public ContentPackInstallation installContentPack(@PathParam(value="contentPackId")
ModelId id,
@PathParam(value="revision")
int revision,
@Valid @NotNull
@Valid @NotNull ContentPackInstallationRequest contentPackInstallationRequest)
@GET
@Path(value="{contentPackId}/installations")
@Timed
public ContentPackInstallationsResponse listContentPackInstallationsById(@PathParam(value="contentPackId")
ModelId id)
@GET
@Path(value="{contentPackId}/installations/{installationId}/uninstall_details")
@Timed
public ContentPackUninstallDetails uninstallDetails(@PathParam(value="contentPackId")
ModelId id,
@PathParam(value="installationId")
String installationId)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.