Overview
The status RESTful API displays the status of an executed job using the following URL and method:
Item | Description | ||
---|---|---|---|
URL | /datamover/jobs | ||
Method | GET |
Request Parameters
- status
- URL: /datamover/jobs?status=<value>
Response Parameters
- jobExecutionName
- Description: Job execution name
- jobName
- Description: Job name (maximum characters: 237)
- startTime
- Description: start time
- endTime
- Description: end time if job has executed or null if not executed
- status
- Description: Status of the job (maximum characters: 12), where possible values are listed in in the status description for Request Parameters
- priority
- Description: Priority of the job if and when executed (maximum characters: 11), where the value is one of the following:
- UNSPECIFIED
- LOW
- MEDIUM
- HIGH
Status Codes
If the command executes without error, the API returns status code 200 in the response header and nothing in the response body.
If an error occurs during execution, the API returns a non-200 status code in the response header and an error message in JSON format in the response body.
Response Example
This example shows an array of job executions with the most common status. The links generated depend on job status.
[ { "jobName": "newJob", "startTime": null, "endTime": null, "status": "NEW", "priority": "MEDIUM" }, { "jobName": "runningJob", "startTime": 1417744247669, "endTime": null, "status": "RUNNING", "priority": "MEDIUM", "links": [ { "rel": "status", "href": "http://server/datamover/executingJobs/runningJob-1417744247669" }, { "rel": "past_executions", "href": "http://server/datamover/executedJobs?jobName=runningJob" } ] }, { "jobName": "successfulJob", "startTime": 1417744247669, "endTime": 1417744323437, "status": "COMPLETED", "priority": "MEDIUM", "links": [ { "rel": "status", "href": "http://server/datamover/executedJobs/successfulJob-20141204175020" }, { "rel": "past_executions", "href": "http://server/datamover/executedJobs?jobName=successfulJob" } ] }, { "jobName": "failedJob", "startTime": 1417744247669, "endTime": 1417744323437, "status": "FAILED", "priority": "MEDIUM", "links": [ { "rel": "status", "href": "http://server/datamover/executedJobs/failedJob-20141204175020" }, { "rel": "past_executions", "href": "http://server/datamover/executedJobs?jobName=failedJob" } ] } ]