zhmcGetJobStatus function
zhmcGetJobStatus (hmcname, jobInfo)
Returns the job status of a previously invoked operation or the message object from a job completion notification. The job status object contains the following properties:
status | A string containing the value 'running' or 'complete' |
job_status_code | A number containing the HTTP status code of the operation if the status contains the value 'complete.' A value greater or equal to 200 and less than 300 indicates a successful completion. |
job_reason_code | The job completion reason code if the status is set to 'Complete' and an error occurred. |
job_results | A nested object containing the results of the job when the status is set to 'complete.' The contents of the object depend on the operation performed. |
Parameters:
hmcname | The HMC session name |
jobInfo | The job information as returned by a zhmc operation function |
Returns:
A job status object.