Skip to main content

enable_export_notebook

Creates, updates, deletes, gets or lists an enable_export_notebook resource.

Overview

Nameenable_export_notebook
TypeResource
Iddatabricks_workspace.settings.enable_export_notebook

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
setting_namestringName of the corresponding setting. This field is populated in the response, but it will not be respected even if it's set in the request body. The setting name in the path parameter will be respected instead. Setting name is required to be 'default' if the setting only has one instance per workspace.
boolean_valobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_nameGets the Notebook and File exporting setting.
updateupdatedeployment_name, allow_missing, setting, field_maskUpdates the Notebook and File exporting setting. The model follows eventual consistency, which means

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)

SELECT examples

Gets the Notebook and File exporting setting.

SELECT
setting_name,
boolean_val
FROM databricks_workspace.settings.enable_export_notebook
WHERE deployment_name = '{{ deployment_name }}' -- required
;

UPDATE examples

Updates the Notebook and File exporting setting. The model follows eventual consistency, which means

UPDATE databricks_workspace.settings.enable_export_notebook
SET
allow_missing = {{ allow_missing }},
setting = '{{ setting }}',
field_mask = '{{ field_mask }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
AND allow_missing = {{ allow_missing }} --required
AND setting = '{{ setting }}' --required
AND field_mask = '{{ field_mask }}' --required
RETURNING
setting_name,
boolean_val;