dbfs_objects
Creates, updates, deletes, gets or lists a dbfs_objects
resource.
Overview
Name | dbfs_objects |
Type | Resource |
Id | databricks_workspace.filemanagement.dbfs_objects |
Fields
The following fields are returned by SELECT
queries:
- getstatus
Request completed successfully.
Name | Datatype | Description |
---|---|---|
file_size | integer | |
is_dir | boolean | |
modification_time | integer | |
path | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
getstatus | select | deployment_name | Gets the file information for a file or directory. If the file or directory does not exist, this call throws an exception with | |
delete | delete | deployment_name | Delete the file or directory (optionally recursively delete all files in the directory). This call throws an exception with |
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.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- getstatus
Gets the file information for a file or directory. If the file or directory does not exist, this call throws an exception with
SELECT
file_size,
is_dir,
modification_time,
path
FROM databricks_workspace.filemanagement.dbfs_objects
WHERE deployment_name = '{{ deployment_name }}' -- required;
DELETE
examples
- delete
Delete the file or directory (optionally recursively delete all files in the directory). This call throws an exception with
DELETE FROM databricks_workspace.filemanagement.dbfs_objects
WHERE deployment_name = '{{ deployment_name }}' --required;