arazzo: 1.0.1
info:
title: Databricks Find Job by Name and Run It
summary: Look up a job by exact name, then trigger an immediate run of it.
description: >-
Resolves a Databricks job by its exact (case-insensitive) name using the
list endpoint's name filter, then triggers an immediate run of the matched
job. The job_id extracted from the first matched job is reused for the
run-now request. Every step spells out its request inline so the flow can be
read and executed without opening the underlying OpenAPI description.
version: 1.0.0
sourceDescriptions:
- name: jobsApi
url: ../openapi/databricks-jobs-api-openapi.yml
type: openapi
workflows:
- workflowId: find-job-and-run
summary: Resolve a job by name and trigger a run.
description: >-
Lists jobs filtered by exact name, confirms a match exists, and triggers a
run-now for the first matched job.
inputs:
type: object
required:
- name
properties:
name:
type: string
description: The exact (case-insensitive) job name to resolve.
notebook_params:
type: object
description: Optional notebook parameters for the triggered run.
steps:
- stepId: findJob
description: >-
List jobs filtered by exact name and capture the job_id of the first
match.
operationId: listJobs
parameters:
- name: name
in: query
value: $inputs.name
- name: limit
in: query
value: 1
successCriteria:
- condition: $statusCode == 200
outputs:
jobId: $response.body#/jobs/0/job_id
onSuccess:
- name: jobFound
type: goto
stepId: runJobNow
criteria:
- context: $response.body
condition: $.jobs[0]
type: jsonpath
- stepId: runJobNow
description: >-
Trigger an immediate run of the matched job, optionally passing notebook
parameters.
operationId: runJobNow
requestBody:
contentType: application/json
payload:
job_id: $steps.findJob.outputs.jobId
notebook_params: $inputs.notebook_params
successCriteria:
- condition: $statusCode == 200
outputs:
runId: $response.body#/run_id
outputs:
jobId: $steps.findJob.outputs.jobId
runId: $steps.runJobNow.outputs.runId
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.