Waiting for the job(s): (
http://delphixengineip/api/#job)
Take the Job reference (the job number) that you were given and read that object from the Delphix engine:
curl -X GET -k "
http://${DEIP}/resources/json/delphix/job/${JOBREF}" -b ~/cookies.txt -H "Content-Type: application/json"
put that will return the job object, which has two properties of interest: jobState and percentComplete
(
http://delphixengineip/api/#Job)
The one you want as a condition to evaluate is job_state. So create a polling loop that checks the job to see if it is compeleted.
You can use the percentComplete for informational/logging purposes to track/report job progress.