Python
import requests url = "https://{FUSION_HOST}/job-config/jobs/{resource}/actions" payload = { "action": "start", "comment": "Start the job" } headers = {"Content-Type": "application/json"} response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "resource": "task:refresh-autocomplete-blob2", "action": "start", "accepted": true, "message": "Job has been started" }
Start, pause, or abort the specified job.
The job ID, prefixed with the job type, as in spark:my-spark-job.
spark:my-spark-job
The app to which a job belongs, formatted as app:APP_NAME.
app:APP_NAME
One of: start or abort
start
abort
pause
OK
Was this page helpful?