Lodol Docs

Databricks

API actions for the Databricks integration.

Databricks

Manage Databricks clusters and jobs with a workspace URL and personal access token.


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 Databricks jobs with optional pagination.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum number of jobs to return
page_tokenstringNoToken for pagination (from previous response next_page_token)

Response

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

Run job now

Trigger an immediate run of a Databricks job.

Parameters

ParameterTypeRequiredDescription
job_idnumberYesThe ID of the job to run
parametersobjectNoOptional notebook parameters to pass to the job

Response

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

Start cluster

Start a terminated Databricks cluster by its ID.

Parameters

ParameterTypeRequiredDescription
cluster_idstringYesThe ID of the cluster to start

Response

{}

On this page