|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.rest.resources.AbstractBrooklynRestResource
brooklyn.rest.resources.ApplicationResource
@Path("/v1/applications")
@Apidoc("Applications")
@Produces(MediaType.APPLICATION_JSON)
public class ApplicationResource
extends AbstractBrooklynRestResource
| Method Summary | |
|---|---|
JsonNode
|
applicationTree()
|
Response
|
create(ApplicationSpec applicationSpec)
|
Response
|
delete(java.lang.String application)
|
ApplicationSummary
|
get(java.lang.String application)
|
java.lang.Iterable
|
list()
|
| Methods inherited from class AbstractBrooklynRestResource | |
|---|---|
| brooklyn, injectManagementContext, mgmt |
| Method Detail |
|---|
@GET
@Path("/tree")
@ApiOperation(
value = "Fetch applications and entities tree hierarchy"
)
public JsonNode applicationTree()
@POST
@ApiOperation(
value = "Create and start a new application",
responseClass = "brooklyn.rest.domain.TaskSummary"
)
@ApiErrors(value = {
@ApiError(code = 404, reason = "Undefined entity or location"),
@ApiError(code = 412, reason = "Application already registered")
})
public Response create(@ApiParam(
name = "applicationSpec",
value = "Specification for application to be created, with name, locations, and entities or type fields",
required = true) @Valid ApplicationSpec applicationSpec)
@DELETE
@Path("/{application}")
@ApiOperation(
value = "Delete a specified application",
responseClass = "brooklyn.rest.domain.TaskSummary"
)
@ApiErrors(value = {
@ApiError(code = 404, reason = "Application not found")
})
public Response delete(@ApiParam(
name = "application",
value = "Application name",
required = true
) @PathParam("application") java.lang.String application)
@GET
@Path("/{application}")
@ApiOperation(
value = "Fetch a specific application",
responseClass = "brooklyn.rest.domain.ApplicationSummary"
)
@ApiErrors(value = {
@ApiError(code = 404, reason = "Application not found")
})
public ApplicationSummary get(@ApiParam(
value = "ID or name of application whose details will be returned",
required = true) @PathParam("application") java.lang.String application)
@GET
@ApiOperation(
value = "Fetch list of applications",
responseClass = "brooklyn.rest.domain.ApplicationSummary"
)
public java.lang.Iterable list()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.