Skip to main content

workspace_config

Creates, updates, deletes, gets or lists a workspace_config resource.

Overview

Nameworkspace_config
TypeResource
Iddatabricks_workspace.settings.workspace_config

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
customReferencesstringCustom reference links displayed in the workspace help menu
enable-X-Frame-OptionsstringControls the X-Frame-Options HTTP header to prevent clickjacking by restricting iframe embedding
enableClusterAclsConfigstringEnables cluster-level access control lists (ACLs) for managing cluster permissions
enableDatabricksAutologgingAdminConfstringEnables or disables Databricks Autologging for MLflow experiments at the workspace level
enableDbfsFileBrowserstringEnables the DBFS visual file browser in the workspace UI
enableDcsstringEnables Delta Cache Service for accelerated data reads from cloud storage
enableDeprecatedGlobalInitScriptsstringEnables legacy global init scripts (deprecated in favor of the Global Init Scripts API)
enableEnforceImdsV2stringEnforces IMDSv2 (Instance Metadata Service v2) on cluster nodes for improved security (AWS only)
enableExportNotebookstringControls whether users can export notebooks from the workspace
enableFileStoreEndpointstringEnables the /FileStore endpoint for accessing files uploaded to DBFS FileStore
enableGp3stringEnables GP3 EBS volumes for cluster nodes instead of GP2 (AWS only)
enableHlsRuntimestringEnables the Databricks Runtime for Health and Life Sciences (genomics and biomedical workloads)
enableIpAccessListsstringEnables IP access list functionality to restrict workspace access by IP address (Premium tier required)
enableJobAclsConfigstringEnables job-level access control lists (ACLs) for managing job permissions
enableJobsEmailsV2stringEnables the updated email notification system for job run results
enableJobViewAclsstringEnables view-level ACLs on jobs, restricting visibility of jobs to permitted users
enableNotebookTableClipboardstringControls whether users can copy table data from notebook output to the clipboard
enableProjectsAllowListstringEnables the projects allow list to restrict which Git repositories can be used
enableProjectTypeInWorkspacestringEnables project-type resources within the workspace
enableResultsDownloadingstringControls whether users can download query and notebook results
enableTokensConfigstringEnables or disables personal access token creation and management for the workspace
enableUploadDataUisstringEnables the data upload UI for importing files into the workspace
enableVerboseAuditLogsstringEnables verbose audit logging with additional event details including notebook command results
enableWebTerminalstringEnables web-based terminal access to cluster driver nodes from the workspace UI
enableWorkspaceAclsConfigstringEnables workspace-level access control lists (ACLs) for managing workspace object permissions
enableWorkspaceFilesystemstringEnables the workspace filesystem for storing and accessing workspace files
enforceClusterViewAclsstringEnforces view-level ACLs on clusters, restricting cluster visibility to permitted users
enforceUserIsolationstringEnforces user isolation on clusters to prevent users from accessing each others data
enforceWorkspaceViewAclsstringEnforces view-level ACLs on workspace objects, restricting visibility to permitted users
heapAnalyticsAdminConsentstringControls admin consent for Heap Analytics usage tracking in the workspace
homePageLogostringCustom logo image URL displayed on the workspace home page
homePageLogoWidthstringWidth in pixels of the custom home page logo
homePageWelcomeMessagestringCustom welcome message displayed on the workspace home page
jobsListBackendPaginationEnabledstringEnables backend pagination for the jobs list API for improved performance with large job counts
jobsListBackendPaginationOptOutstringOpts out of backend pagination for the jobs list if enabled at the workspace level
loginLogostringCustom logo image URL displayed on the workspace login page
loginLogoWidthstringWidth in pixels of the custom login page logo
maxTokenLifetimeDaysstringMaximum lifetime in days for newly created personal access tokens (empty or 0 means no limit)
mlflowModelRegistryEmailNotificationsEnabledstringEnables email notifications for MLflow Model Registry events such as model version transitions
mlflowModelServingEndpointCreationEnabledstringEnables creation of MLflow model serving endpoints in the workspace
mlflowRunArtifactDownloadEnabledstringControls whether users can download artifacts from MLflow experiment runs
productNamestringCustom product name displayed in the workspace UI (white-labeling)
projectsAllowListstringComma-separated list of allowed Git repository URL prefixes for workspace projects
projectsAllowListPermissionsstringPermissions configuration for who can manage the projects allow list
reposIpynbResultsExportPermissionsstringControls permissions for exporting ipynb notebook results from Git-backed repos
rStudioUserDefaultHomeBasestringDefault home directory base path for RStudio users in the workspace
sidebarLogoActivestringCustom logo image URL for the active state of the workspace sidebar
sidebarLogoInactivestringCustom logo image URL for the inactive state of the workspace sidebar
sidebarLogoTextstringCustom text displayed alongside the sidebar logo (white-labeling)
storeInteractiveNotebookResultsInCustomerAccountstringStores all interactive notebook results in the customer cloud account instead of the Databricks control plane

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workspace_configselectkeys, deployment_nameGets the configuration status for a workspace.
set_workspace_configupdatedeployment_name, contentsSets the configuration status for a workspace, including enabling or disabling it.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
keysstring:returns: Dict[str,str]

SELECT examples

Gets the configuration status for a workspace.

SELECT
customReferences,
enable-X-Frame-Options,
enableClusterAclsConfig,
enableDatabricksAutologgingAdminConf,
enableDbfsFileBrowser,
enableDcs,
enableDeprecatedGlobalInitScripts,
enableEnforceImdsV2,
enableExportNotebook,
enableFileStoreEndpoint,
enableGp3,
enableHlsRuntime,
enableIpAccessLists,
enableJobAclsConfig,
enableJobViewAcls,
enableJobsEmailsV2,
enableNotebookTableClipboard,
enableProjectTypeInWorkspace,
enableProjectsAllowList,
enableResultsDownloading,
enableTokensConfig,
enableUploadDataUis,
enableVerboseAuditLogs,
enableWebTerminal,
enableWorkspaceAclsConfig,
enableWorkspaceFilesystem,
enforceClusterViewAcls,
enforceUserIsolation,
enforceWorkspaceViewAcls,
heapAnalyticsAdminConsent,
homePageLogo,
homePageLogoWidth,
homePageWelcomeMessage,
jobsListBackendPaginationEnabled,
jobsListBackendPaginationOptOut,
loginLogo,
loginLogoWidth,
maxTokenLifetimeDays,
mlflowModelRegistryEmailNotificationsEnabled,
mlflowModelServingEndpointCreationEnabled,
mlflowRunArtifactDownloadEnabled,
productName,
projectsAllowList,
projectsAllowListPermissions,
rStudioUserDefaultHomeBase,
reposIpynbResultsExportPermissions,
sidebarLogoActive,
sidebarLogoInactive,
sidebarLogoText,
storeInteractiveNotebookResultsInCustomerAccount
FROM databricks_workspace.settings.workspace_config
WHERE keys = '{{ keys }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

UPDATE examples

Sets the configuration status for a workspace, including enabling or disabling it.

UPDATE databricks_workspace.settings.workspace_config
SET
contents = '{{ contents }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
AND contents = '{{ contents }}' --required;