databricks
How to get these credentialsConnection to one Databricks workspace's REST API (AWS, Azure or GCP): the workspace URL plus a personal access token, an OAuth service principal (client id + secret), or an Azure AD token.
CREATE SECRET databricks (
TYPE databricks,
host '<host>', -- required
token '<DATABRICKS_TOKEN>', -- secret
client_id '<client_id>',
client_secret '<DATABRICKS_CLIENT_SECRET>', -- secret
azure_token '<AZURE_TOKEN>', -- secret
auth_type '<auth_type>',
page_size '<page_size>',
timeout '<timeout>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| host | VARCHAR | Yes | Workspace URL, e.g. 'https://dbc-a1b2c3d4-e5f6.cloud.databricks.com' or 'https://adb-1234567890123456.7.azuredatabricks.net'. |
| token secret | VARCHAR | No | Personal access token (dapi...), sent as a bearer token. |
| client_id | VARCHAR | No | OAuth M2M: the service principal's application (client) id. |
| client_secret secret | VARCHAR | No | OAuth M2M: the service principal's OAuth secret, exchanged at <host>/oidc/v1/token. |
| azure_token secret | VARCHAR | No | An Azure AD (Entra ID) access token for the Azure Databricks resource. |
| auth_type | VARCHAR | No | 'auto' (default: token, then client_id/client_secret, then azure_token), 'pat', 'oauth-m2m' or 'azure'. |
| page_size | BIGINT | No | Items requested per API page, capped at each endpoint's maximum. |
| timeout | DOUBLE | No | Per-request timeout in seconds (default 30). |
Needed by run_outputworkspace_objects