---
title: List Databricks integration accounts
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Databricks Integration
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# List Databricks integration accounts{% #list-databricks-integration-accounts %}
Copy pageCopied
{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                                        |
| ----------------- | ----------------------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/integration-interfaces/databricks/accounts |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/integration-interfaces/databricks/accounts |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/integration-interfaces/databricks/accounts      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/integration-interfaces/databricks/accounts      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/integration-interfaces/databricks/accounts  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/integration-interfaces/databricks/accounts |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/integration-interfaces/databricks/accounts     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/integration-interfaces/databricks/accounts |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/integration-interfaces/databricks/accounts |

### Overview

List Databricks integration accounts. This endpoint requires the `integrations_read` permission.

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response payload for a list of Databricks integration accounts.

| Parent field                                     | Field                                            | Type          | Description                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------ | ------------------------------------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                                  | data [*required*]                           | [object]      | List of Databricks integration accounts.                                                                                                                                                                                                                                                                                                              |
| data                                             | attributes [*required*]                     | object        | Attributes of a Databricks integration account returned in responses.                                                                                                                                                                                                                                                                                 |
| attributes                                       | authentication                                   |  <oneOf> | Authentication configured on the Databricks integration account. A `bearer_token` method indicates an account still on token authentication, which Databricks accepts only on accounts that already use it.                                                                                                                                           |
| authentication                                   | <auth_type=databricks_oauth>                     | object        | The Databricks OAuth authentication method and service principal configured on the account.                                                                                                                                                                                                                                                           |
| <auth_type=databricks_oauth>                     | auth_type [*required*]                      | enum          | The authentication method type. Allowed enum values: `databricks_oauth`                                                                                                                                                                                                                                                                               |
| <auth_type=databricks_oauth>                     | azure_tenant_id                                  | string        | Microsoft Entra ID tenant of the service principal, for Azure Databricks workspaces.                                                                                                                                                                                                                                                                  |
| <auth_type=databricks_oauth>                     | client_id [*required*]                      | string        | Client ID of the Databricks service principal.                                                                                                                                                                                                                                                                                                        |
| authentication                                   | <auth_type=private_action_runner>                | object        | The Private Action Runner authentication method configured on the account.                                                                                                                                                                                                                                                                            |
| <auth_type=private_action_runner>                | auth_type [*required*]                      | enum          | The authentication method type. Allowed enum values: `private_action_runner`                                                                                                                                                                                                                                                                          |
| <auth_type=private_action_runner>                | connection_id [*required*]                  | uuid          | Unique identifier of the Private Action Runner connection holding the credentials.                                                                                                                                                                                                                                                                    |
| <auth_type=private_action_runner>                | secret_path                                      | string        | Path of the credential inside the secret backend configured on the runner.                                                                                                                                                                                                                                                                            |
| <auth_type=private_action_runner>                | user_uuid [*required*]                      | uuid          | Unique identifier of the user the Private Action Runner connection belongs to.                                                                                                                                                                                                                                                                        |
| authentication                                   | <auth_type=bearer_token>                         | object        | The bearer token authentication method configured on the account.                                                                                                                                                                                                                                                                                     |
| <auth_type=bearer_token>                         | auth_type [*required*]                      | enum          | The authentication method type. Allowed enum values: `bearer_token`                                                                                                                                                                                                                                                                                   |
| attributes                                       | dataflows                                        | object        | Data Datadog collects from Databricks, keyed by dataflow id.                                                                                                                                                                                                                                                                                          |
| dataflows                                        | databricks-cloud-cost-metrics                    | object        | Cost data collected from your Databricks system tables. Requires [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md) to be set up for your organization.                                                                                                                                                                     |
| databricks-cloud-cost-metrics                    | enabled                                          | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                   |
| databricks-cloud-cost-metrics                    | settings                                         | object        | Settings of the Cloud Cost Management dataflow.                                                                                                                                                                                                                                                                                                       |
| settings                                         | ccm_collect_all_workspaces                       | boolean       | Whether cost data is collected for every workspace in the Databricks account rather than this workspace only. This takes effect across the Databricks account: if any one workspace enables it, Datadog collects cost data for all of them regardless of their individual settings, and every covered workspace incurs Cloud Cost Management charges. |
| dataflows                                        | databricks-data-observability-jobs-monitoring    | object        | Data Jobs Monitoring, which collects performance, reliability, and cost data for your Databricks jobs.                                                                                                                                                                                                                                                |
| databricks-data-observability-jobs-monitoring    | enabled                                          | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                   |
| databricks-data-observability-jobs-monitoring    | settings                                         | object        | Settings of the Data Jobs Monitoring dataflow.                                                                                                                                                                                                                                                                                                        |
| settings                                         | dd_api_key_id                                    | string        | ID of the Datadog API key the global init script uses to submit data.                                                                                                                                                                                                                                                                                 |
| settings                                         | djm_global_init_script_enabled                   | boolean       | Whether Datadog installs and manages the Agent on your Databricks clusters through a global init script. The script does not apply to clusters in Standard access mode. When `false`, the Agent is installed manually.                                                                                                                                |
| settings                                         | script_gpum_enabled                              | boolean       | Whether GPU metrics are collected from your Databricks clusters. The Agent installed by the global init script performs the collection, so this requires the dataflow to be enabled with `djm_global_init_script_enabled` set to `true`.                                                                                                              |
| settings                                         | script_logs_enabled                              | boolean       | Whether driver and worker logs are collected from your Databricks clusters. The Agent installed by the global init script performs the collection, so this requires the dataflow to be enabled with `djm_global_init_script_enabled` set to `true`.                                                                                                   |
| settings                                         | serverless_jobs_enabled                          | boolean       | Whether health and cost data is collected for jobs running on Serverless or SQL Warehouse compute. This compute has no clusters for the global init script to target, so collection reads the Databricks system tables and requires `system_tables_sql_warehouse_id`.                                                                                 |
| dataflows                                        | databricks-data-observability-quality-monitoring | object        | Data Observability, which collects lineage and data quality information from your Databricks catalogs so you can explore how data flows and detect, resolve, and prevent quality issues.                                                                                                                                                              |
| databricks-data-observability-quality-monitoring | enabled                                          | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                   |
| databricks-data-observability-quality-monitoring | settings                                         | object        | Settings of the Data Observability dataflow.                                                                                                                                                                                                                                                                                                          |
| settings                                         | do_crawlers_cron                                 | string        | Cron expression setting how often Datadog connects to your Databricks warehouse to collect metadata. Currently, only hourly (`0 * * * *`) and daily (`0 0 * * *`) are supported.                                                                                                                                                                      |
| settings                                         | sync_system_catalog                              | boolean       | Whether metadata from the Databricks `system` catalog is included in Data Observability alongside your data catalogs.                                                                                                                                                                                                                                 |
| dataflows                                        | databricks-model-serving-metrics                 | object        | Health and usage metrics for your Databricks model serving endpoints. Not supported on accounts that authenticate with `private_action_runner`; on those accounts this dataflow collects no data.                                                                                                                                                     |
| databricks-model-serving-metrics                 | enabled                                          | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                                                                                                   |
| attributes                                       | name [*required*]                           | string        | Human-readable name of the Databricks integration account.                                                                                                                                                                                                                                                                                            |
| attributes                                       | settings [*required*]                       | object        | Settings configured on the Databricks integration account.                                                                                                                                                                                                                                                                                            |
| settings                                         | system_tables_sql_warehouse_id                   | string        | ID of the SQL warehouse used to query the Databricks system tables.                                                                                                                                                                                                                                                                                   |
| settings                                         | workspace_url [*required*]                  | string        | URL of the Databricks workspace.                                                                                                                                                                                                                                                                                                                      |
| data                                             | id [*required*]                             | string        | Server-generated unique identifier of the Databricks integration account.                                                                                                                                                                                                                                                                             |
| data                                             | type [*required*]                           | enum          | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`                                                                                                                                                                                                                                |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": [
    {
      "attributes": {
        "authentication": {
          "auth_type": "databricks_oauth",
          "azure_tenant_id": "4d3bac44-0230-4732-9e70-cc00736f0a97",
          "client_id": "5c10654a-b3a3-4840-b37f-f477590c70a0"
        },
        "dataflows": {
          "databricks-cloud-cost-metrics": {
            "enabled": true,
            "settings": {
              "ccm_collect_all_workspaces": true
            }
          },
          "databricks-data-observability-jobs-monitoring": {
            "enabled": true,
            "settings": {
              "dd_api_key_id": "fe383f4e-09fc-46bf-8e10-4efdd453a646",
              "djm_global_init_script_enabled": true,
              "script_gpum_enabled": true,
              "script_logs_enabled": true,
              "serverless_jobs_enabled": true
            }
          },
          "databricks-data-observability-quality-monitoring": {
            "enabled": true,
            "settings": {
              "do_crawlers_cron": "0 * * * *",
              "sync_system_catalog": true
            }
          },
          "databricks-model-serving-metrics": {
            "enabled": true
          }
        },
        "name": "My Databricks Workspace",
        "settings": {
          "system_tables_sql_warehouse_id": "aba7c023d4172910",
          "workspace_url": "https://dbc-1234abcd.cloud.databricks.com"
        }
      },
      "id": "a9a69c2e-4f8d-4e42-9c1a-2a7a2d3b7c6f",
      "type": "integration-account"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Use a Personal Access Token or Service Access Token export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"  \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/integration-interfaces/databricks/accounts" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" 
                
##### 

```python
"""
List Databricks integration accounts returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.databricks_integration_api import DatabricksIntegrationApi

configuration = Configuration()
configuration.access_token = environ["DD_BEARER_TOKEN"]
configuration.unstable_operations["list_databricks_integration_accounts"] = True
with ApiClient(configuration) as api_client:
    api_instance = DatabricksIntegrationApi(api_client)
    response = api_instance.list_databricks_integration_accounts()

    print(response)
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=python) and then save the example to `example.py` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"
##### 

```ruby
# List Databricks integration accounts returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.access_token = ENV["DD_BEARER_TOKEN"]
  config.unstable_operations["v2.list_databricks_integration_accounts".to_sym] = true
end
api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new
p api_instance.list_databricks_integration_accounts()
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=ruby) and then save the example to `example.rb` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" rb "example.rb"
##### 

```go
// List Databricks integration accounts returns "OK" response

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"os"

	"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
)

func main() {
	ctx := datadog.NewDefaultContext(context.Background())
	ctx = context.WithValue(ctx, datadog.ContextAccessToken, os.Getenv("DD_BEARER_TOKEN"))
	configuration := datadog.NewConfiguration()
	configuration.SetUnstableOperationEnabled("v2.ListDatabricksIntegrationAccounts", true)
	apiClient := datadog.NewAPIClient(configuration)
	api := datadogV2.NewDatabricksIntegrationApi(apiClient)
	resp, r, err := api.ListDatabricksIntegrationAccounts(ctx)

	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabricksIntegrationApi.ListDatabricksIntegrationAccounts`: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}

	responseContent, _ := json.MarshalIndent(resp, "", "  ")
	fmt.Fprintf(os.Stdout, "Response from `DatabricksIntegrationApi.ListDatabricksIntegrationAccounts`:\n%s\n", responseContent)
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=go) and then save the example to `main.go` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"
##### 

```java
// List Databricks integration accounts returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.DatabricksIntegrationApi;
import com.datadog.api.client.v2.model.DatabricksIntegrationAccountsResponse;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = ApiClient.getDefaultApiClient();
    defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
    defaultClient.setUnstableOperationEnabled("v2.listDatabricksIntegrationAccounts", true);
    DatabricksIntegrationApi apiInstance = new DatabricksIntegrationApi(defaultClient);

    try {
      DatabricksIntegrationAccountsResponse result =
          apiInstance.listDatabricksIntegrationAccounts();
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println(
          "Exception when calling DatabricksIntegrationApi#listDatabricksIntegrationAccounts");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=java) and then save the example to `Example.java` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"
##### 

```rust
// List Databricks integration accounts returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_databricks_integration::DatabricksIntegrationAPI;

#[tokio::main]
async fn main() {
    let mut configuration = datadog::Configuration::new();
    configuration.set_unstable_operation_enabled("v2.ListDatabricksIntegrationAccounts", true);
    let api = DatabricksIntegrationAPI::with_config(configuration);
    let resp = api.list_databricks_integration_accounts().await;
    if let Ok(value) = resp {
        println!("{:#?}", value);
    } else {
        println!("{:#?}", resp.unwrap_err());
    }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=rust) and then save the example to `src/main.rs` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
##### 

```typescript
/**
 * List Databricks integration accounts returns "OK" response
 */

import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration({
  authMethods: {
    AuthZ: {
      accessToken: process.env.DD_BEARER_TOKEN as string,
    },
  },
});
configuration.unstableOperations["v2.listDatabricksIntegrationAccounts"] = true;
const apiInstance = new v2.DatabricksIntegrationApi(configuration);

apiInstance
  .listDatabricksIntegrationAccounts()
  .then((data: v2.DatabricksIntegrationAccountsResponse) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data)
    );
  })
  .catch((error: any) => console.error(error));
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=typescript) and then save the example to `example.ts` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" tsc "example.ts"
{% /tab %}
