Lodol Docs

Databricks

API actions for the Databricks integration.

Databricks

Manage clusters and run jobs in your Databricks workspace.


List clusters

List all Databricks clusters in the workspace.

Response

{
  "clusters": [
    {
      "cluster_id": "1234-567890-abcde123",
      "cluster_name": "my-cluster",
      "state": "RUNNING"
    }
  ],
  "clusters_count": 1
}

List jobs

List the jobs in your Databricks workspace. If there are many, results come back a page at a time.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum number of jobs to return
page_tokenstringNoTo get the next page of results, enter the next page token from the previous run's results. Leave blank to start from the first page.

Response

{
  "has_more": false,
  "jobs": [
    {
      "job_id": 12345,
      "settings": {
        "name": "my-job"
      }
    }
  ],
  "next_page_token": null
}

Run job now

Run a Databricks job right away.

Parameters

ParameterTypeRequiredDescription
job_idnumberYesThe ID of the job to run
parametersobjectNoOptional values to pass to the job's notebook when it runs, entered as names and values

Response

{
  "number_in_job": 1,
  "run_id": 67890
}

Start cluster

Start a Databricks cluster that is currently stopped.

Parameters

ParameterTypeRequiredDescription
cluster_idstringYesThe ID of the cluster to start

Response

{}

On this page