@RestController @RequestMapping(value="/tasks/deployments") @ExposesResourceFor(value=TaskDeploymentResource.class) public class TaskDeploymentController extends Object
| Constructor and Description |
|---|
TaskDeploymentController(TaskService taskService)
Creates a
TaskDeploymentController that delegates launching
operations to the provided TaskService |
public TaskDeploymentController(TaskService taskService)
TaskDeploymentController that delegates launching
operations to the provided TaskServicetaskService - Must not be null@RequestMapping(value="/{name}", method=POST) @ResponseStatus(value=CREATED) public void deploy(@PathVariable(value="name") String taskName, @RequestParam(required=false) String properties, @RequestParam(required=false) List<String> arguments)
taskName - the name of the existing task to be executed (required)properties - the runtime properties for the task, as a comma-delimited list of
key=value pairsarguments - the runtime commandline argumentsCopyright © 2016 Pivotal Software, Inc.. All rights reserved.