Task Service
{ urn:com.soa.admin.service.tasks.jaxrs } TaskService
The TaskService provides access to administration tasks that involve some form of workflow.
GETGet Tasks
Get all tasks in the system, optionally ordered.
Parameters
Reponse
link {
taskInfo {
GET/{id}Get Task Detail
Get detailed information for a specified task.
Request:
GET /admin/tasks/{task} HTTP/1.1"
Accept: application/json
Responses:
- 200 OK, If successful
- 404 Not Found, If the specified task ID is not found
Parameters
Reponse
link {
GET/{id}/stepsGet Steps for a task
Get all step definitions associated with a task.
Request:
GET /admin/tasks/{task}/steps HTTP/1.1
Accept: application/json
Responses:
- 200 OK, If successful
- 404 Not Found, if the specified task cannot be found
Parameters
Reponse
link {
stepInfo {
propertySet {
propertyMetadata {
option {
GET/jobs/{id}Get Task Job Status
Get the current state of a job associated with a task.
Request:
GET /admin/tasks/{job} HTTP/1.1
Accept: application/json
Responses :
- 200 OK If successful
- 404 Not Found If the specified job ID cannot be found
Response:
200 OK
Content-Type: application/json
Transfer-Encoding: chunked
{
}
Parameters
Reponse
link {
stepStatus {
DELETE/jobs/{id}Cancel a Task Job
Cancel an outstanding configuration execution job. The task service maintains the state of a task execution sequence in a "job". These jobs hold any values provided to, or set by the steps taken, during execution of a task. By canceling a job, all state for a task and its steps are cleared from the system.
Request:
DELETE /admin/tasks/jobs/{id} HTTP/1.1
Responses:
- 200 OK
- 404 Not Found if job with given ID is not found
Parameters
GET/{id}/steps/{step}Get Step Detail
Get detailed information on a task step.
Request:
GET /admin/tasks/{task}/steps/{step} HTTP/1.1
Accept: application/json
Responses:
- 200 OK, If successful
- 404 Not Found, If the specified task or step is not found
Response:
200 OK Content-Type: application/json Transfer-Encoding: chunked
{
"presentationName": "Manage Container Identity",
"required": true,
"repeatable": true,
"completed": false,
"failed": false,
"recommended": false,
"automated": false,
"name": "com.soa.container.identity",
"links": [
{
"rel": "next",
"href": "http://localhost:9900/admin/tasks/com.soa.container.identity/steps/container.identity.select.action"
},
{
"rel": "self",
"href": "http://localhost:9900/admin/tasks/com.soa.container.identity"
},
{
"rel": "steps",
"href": "http://localhost:9900/admin/tasks/com.soa.container.identity/steps"
}
]
}
Parameters
Reponse
propertySet {
link {
propertyMetadata {
option {
POST/{id}/steps/{step}/executeExecute Step with a form
Execute a step that accepts form data as part of a task.
Request:
POST /admin/tasks/{task}/steps/{step}/execute HTTP/1.1
Content-Type: application/x-www-form-urlencoded
param1=value1¶m1=value2¶m2=xyz
Response:
The following is an example of a response for a simple step.
{
}
Responses:
- 200 OK If the step executed
- 404 Not Found if the specified task or step are not found
Parameters
Reponse
link {
stepStatus {
POST/{id}/steps/{step}/executeExecute Step with an Upload
Execute a step that accepts multipart form data (usually file upload) as part of a task.
Request:
POST /admin/tasks/{task}/steps/{step}/execute HTTP/1.1
Content-Type: multipart/form-data;boundary=xyz
Response:
The following is an example of a response for a simple step.
{
}
Responses:
- 200 OK If the step executed
- 404 Not Found if the specified task or step are not found
Parameters
Reponse
link {
stepStatus {
POST/{id}/steps/{step}/executeExecute Step
Execute a step that accepts a JSON array of NameValuePair instances.
Request:
The following is a sample request. Note that there may be multiple values for a single parameter.
POST /admin/tasks/{task}/steps/{step}/execute HTTP/1.1
Content-Type: application/json
[
{"name":"param1","value":"value1"},
{"name":"param1","value":"value2"},
{"name":"param2","value":"xyz"}
]
Response:
The following is an example of a response for a simple step.
{
}
Responses:
- 200 OK If the step executed
- 404 Not Found if the specified task or step are not found
Parameters
Reponse
link {
stepStatus {