directories
Operations on a directories
resource.
Overview
Name | directories |
Type | Resource |
Id | databricks_workspace.filemanagement.directories |
SELECT
not supported for this resource, see the methods section for supported operations.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
createdirectory | INSERT | directory_path, deployment_name | Creates an empty directory. If necessary, also creates any parent directories of the new, empty directory (like the shell command |
deletedirectory | DELETE | directory_path, deployment_name | Deletes an empty directory. |
INSERT
example
Use the following StackQL query and manifest file to create a new directories
resource.
- directories
- Manifest
/*+ create */
INSERT INTO databricks_workspace.filemanagement.directories (
directory_path,
deployment_name
)
SELECT
'{{ directory_path }}',
'{{ deployment_name }}'
;
- name: your_resource_model_name
props: [] # No request body parameters required
DELETE
example
Deletes a directories
resource.
/*+ delete */
DELETE FROM databricks_workspace.filemanagement.directories
WHERE directory_path = '{{ directory_path }}' AND
deployment_name = '{{ deployment_name }}';