workspace_status
Creates, updates, deletes, gets or lists a workspace_status resource.
Overview
| Name | workspace_status |
| Type | Resource |
| Id | databricks_workspace.workspace.workspace_status |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
object_id | integer | Unique identifier for the object. |
resource_id | string | A unique identifier for the object that is consistent across all Databricks APIs. |
created_at | integer | Only applicable to files. The creation UTC timestamp. |
language | string | The language of the object. This value is set only if the object type is ``NOTEBOOK``. (PYTHON, R, SCALA, SQL) |
modified_at | integer | Only applicable to files, the last modified UTC timestamp. |
object_type | string | The type of the object in workspace. - `NOTEBOOK`: document that contains runnable code, visualizations, and explanatory text. - `DIRECTORY`: directory - `LIBRARY`: library - `FILE`: file - `REPO`: repository - `DASHBOARD`: Lakeview dashboard (DASHBOARD, DIRECTORY, FILE, LIBRARY, NOTEBOOK, REPO) |
path | string | The absolute path of the object. |
size | integer | Only applicable to files. The file size in bytes can be returned. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | path, deployment_name | Gets the status of an object or a directory. If path does not exist, this call returns an error |
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) |
path | string | The absolute path of the notebook or directory. |
SELECT examples
- get
Gets the status of an object or a directory. If path does not exist, this call returns an error
SELECT
object_id,
resource_id,
created_at,
language,
modified_at,
object_type,
path,
size
FROM databricks_workspace.workspace.workspace_status
WHERE path = '{{ path }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;