Skip to main content

sandbox_directories

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

Overview​

Namesandbox_directories
TypeResource
Iddatabricks_workspace.sandbox.sandbox_directories

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertsandbox_id, deployment_name, workspace_domain, pathCreates a directory in a sandbox, including missing parents by default.

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: the host prefix of the workspace URL (dbc-abcd0123-a1bc on AWS, adb-1234567890123456.7 on Azure, 1234567890123456.7 on GCP). Set DATABRICKS_DEPLOYMENT_NAME to default it for the session. (default: dbc-abcd0123-a1bc, x-stackQL-envVar: DATABRICKS_DEPLOYMENT_NAME)
sandbox_idstringThe sandbox_id segment of the parent resource name (sandboxes/{sandbox_id}).
workspace_domainstringThe Databricks workspace domain suffix for the cloud. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws). (default: cloud.databricks.com, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"cloud.databricks.com","azure":"azuredatabricks.net","gcp":"gcp.databricks.com"}})

INSERT examples​

Creates a directory in a sandbox, including missing parents by default.

INSERT INTO databricks_workspace.sandbox.sandbox_directories (
path,
parents,
sandbox_id,
deployment_name,
workspace_domain
)
SELECT
'{{ path }}' /* required */,
{{ parents }},
'{{ sandbox_id }}',
'{{ deployment_name }}',
'{{ workspace_domain }}'
;