unity_catalog
How to get these credentialsConnection to a Unity Catalog server: an open-source Unity Catalog server URL, or a Databricks workspace URL plus a personal access token, an OAuth service principal (client id + secret) or an Azure AD token.
CREATE SECRET unity_catalog (
TYPE unity_catalog,
host '<host>', -- required
token '<UNITY_CATALOG_TOKEN>', -- secret
client_id '<client_id>',
client_secret '<UNITY_CATALOG_CLIENT_SECRET>', -- secret
azure_token '<AZURE_TOKEN>', -- secret
auth_type '<auth_type>',
flavor '<flavor>',
include_browse '<include_browse>',
page_size '<page_size>',
timeout '<timeout>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| host | VARCHAR | Yes | Server URL: open-source Unity Catalog, e.g. 'http://localhost:8080', or a Databricks workspace, e.g. 'https://dbc-a1b2c3d4-e5f6.cloud.databricks.com'. A bare host name gets https://. |
| token secret | VARCHAR | No | Bearer token: a Databricks personal access token (dapi...) or an open-source Unity Catalog token. |
| client_id | VARCHAR | No | Databricks OAuth M2M: the service principal's application (client) id. |
| client_secret secret | VARCHAR | No | Databricks 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, else no authentication), 'pat', 'oauth-m2m', 'azure' or 'none'. |
| flavor | VARCHAR | No | 'auto' (default: Databricks for *.databricks.com / *.azuredatabricks.net hosts, else open source), 'databricks' or 'oss'. Sets the platform column and the UI links in the url column. |
| include_browse | BOOLEAN | No | Databricks: also list catalogs, schemas and tables the principal can only browse (include_browse). |
| page_size | BIGINT | No | Items requested per API page (max_results), capped at each endpoint's maximum. |
| timeout | DOUBLE | No | Per-request timeout in seconds (default 30). |