Get job details

get

/rhp-restapi/rhp/jobs/{jobId}

Return the configuration of the Job resource associated to the given job Id.

Request

Supported Media Types
Path Parameters

Response

Supported Media Types

200 Response

OK. A JSON object containing a job resource representation with multiple properties and the links array with at least the "self" link.
Body ()
Root Schema : jobResource
Type: object
Show Source
Nested Schema : jobOutputResource
Type: object
Show Source

Default Response

Unexpected error. A JSON object containing error details of the issue while executing the operation.
Body ()
Root Schema : errorResource
Type: object
Show Source
Nested Schema : errorDetails
Type: array
If multiple errors are reported they can be organized in a hierarchical structure in this array.
Show Source

Examples

The following example shows how to view the details of an existing job by submitting a GET request on the REST resource using cURL.

curl -u restUser -X GET "https://RHP_node_name:8894/rhp-restapi/rhp/jobs/1"

Response Header

The following shows an example of the response header.

HTTP/1.1 200
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Content-Length, Authorization
Connection: keep-alive
Content-Type: application/json
Content-Length: 321
Date:  Tue, 19 Jun 2018 14:03:23 GMT

Response Body

{
     "links": [{
         "uri": "https://RHP_node_name:8894/rhp-restapi/rhp/jobs/1",
         "rel": "self"
      }],
     "status": "SCHEDULED",
     "jobId": "1",
     "output": {  },
     "operation": "importIntoImage{image=DB_Image1, schedule=2018-06-14T15:42:38Z, path=/path/to/software/home/being/imported/esw1}"
}