1

Is there a way to fetch the job id for the execution of the job template through rest API?

Also, can we poll the job based on the job id?

Anshul
  • 75
  • 9

1 Answers1

0

/api/v2/job_templates/<JT_ID>/jobs/ will give you all the jobs launched from that job template. There area also a few convenience/summary fields in /api/v2/job_templates/<JT_ID>/ to help you find the last job

You can then use this endpoint to monitor the job

/api/v2/jobs/<JOB_ID>/stdout/

Petro026
  • 1,269
  • 8
  • 6