@POST
@Path("/{policy}/start")
@ApiOperation(value = "Start or resume a policy")
@ApiErrors(value = {
@ApiError(code = 404, reason = "Could not find application, entity or policy")
})
public Response start(
@ApiParam(name = "application", value = "Application ID or name", required = true)
@PathParam("application") String application,
@ApiParam(name = "entity", value = "Entity ID or name", required = true)
@PathParam("entity") String entityToken,
@ApiParam(name = "policy", value = "Policy ID or name", required = true)
@PathParam("policy") String policyId
) {
Policy policy = brooklyn().getPolicy(application, entityToken, policyId);
policy.resume();
return Response.status(Response.Status.OK).build();
}