Obtaining Job Information
GET /job/{job_id}
Introduction
Obtains information about the Job for the specified job_id.
You cannot obtain Job information created by another User. Even if the specified Job ID exists, if you are not the creator of that job, the HTTP status code will be 404.
Request Examples
This is an example of obtaining the Job ID and Status for Job ID 8192001.
$ curl -i -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X GET "https://192.168.1.1:5665/api/v1/job/8192001?fields=status"
Response Examples
{
"job_id": 8192001,
"job_href": "/api/v1/job/8192001",
"description": "POST /api/v1/tpp {"name" : "tpp_raid5","level" : "RAID5",...}",
"status": "Success",
"created_time": "2020-01-06T12:20:00Z",
"modified_time": "2020-01-06T12:30:00Z",
"resource_href_list": [
"/api/v1/tpp/0"
],
"operation_list": [
{
"result": "Succeeded",
"operation": "create thin-pro-pool -rg-mode manual -attribute nearline -name tpp#0 -level 1 -disks 0004,0005"
},
{
"result": "Succeeded",
"operation": "expand thin-pro-pool -rg-mode manual -pool-name tpp#0 -disks 006,007"
}
]
}
Parameters
PATH PARAMETERS
| job_id
(required) |
integer Job ID. |
QUERY PARAMETERS
| fields | Array of strings Parameter to display. Only the information of the specified Parameter name (Response Body Parameter) is extracted and obtained. For details about the specification methods, see Property Filter. |
Responses
If successful, the HTTP status code is 200 (OK) and the response body is returned.
RESPONSE BODY
| job_id | integer Job ID. |
||||||||||||||
| job_href | string Resource link of the job. |
||||||||||||||
| description | string Job overview. |
||||||||||||||
| status | string The Job state.
The difference between Error and Partial_Error is as follows.
|
||||||||||||||
| created_time | string Job creation time. Respond to the date and time the Job was created (ISO 8601 extended format). Format is as follows: The time zone is UTC. YYYY-MM-DDThh:mm:ssZ |
||||||||||||||
| modified_time | string Job state change time. Respond the date and time (ISO 8601 extended format) when the Status of Job changed. Format is as follows: The time zone is UTC. YYYY-MM-DDThh:mm:ssZ |
||||||||||||||
| resource_href_list | Array of strings Link to the created Resource. Respond to a Link to a Resource when it is created. This Parameter responds only when all of the following conditions are satisfied.
|
||||||||||||||
| error_code | string Error code. Respond when Status becomes Error. Respond to the error code when the Job failed. See error_message and Appendix A "Error Messages/Error Codes" in "CLI User's Guide" for more information about the error and how to deal with it. |
||||||||||||||
| internal_code | string Error Internal Code. Respond when Status becomes Error. Information for technical support. |
||||||||||||||
| error_message | string Error Message. Respond when Status becomes Error. Respond with error details. Format is as follows: "Description(Factor)"
|
||||||||||||||
| operation_list | Array of objects The list of actions that Job performs. Respond only when Status becomes Error or Partial_Error.
|
||||||||||||||
| progress_href_list | Array of strings Link to Resource to receive progress. Respond if a Job has a Status of Success and requires additional progress receipt outside of GET /job. If this List is answered, use the GET + Progress Href to verify that the operation is complete. |
||||||||||||||
| succeeded_resource_href_list | Array of strings Link to the succeeded Resource. If the Job Status is Partial_Error, the Failed operation may have completed for some Resources even though it is Failed on operation_list. If the Job has a Status of Partial_Error, it responds with a Link to some of the Resources for which the operation was successful. |
||||||||||||||
| failed_resource_info_list | Array of objects Information about the Resource that failed the operation. Respond only when Status becomes Partial_Error. |

