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
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Maximum number of jobs to return |
page_token | string | No | Token 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
| Parameter | Type | Required | Description |
|---|---|---|---|
job_id | number | Yes | The ID of the job to run |
parameters | object | No | Optional 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
| Parameter | Type | Required | Description |
|---|---|---|---|
cluster_id | string | Yes | The ID of the cluster to start |
Response
{}