current_metastore_assignment
Creates, updates, deletes, gets or lists a current_metastore_assignment resource.
Overview
| Name | current_metastore_assignment |
| Type | Resource |
| Id | databricks_workspace.catalog.current_metastore_assignment |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
metastore_id | string | The unique ID of the metastore. |
workspace_id | integer | |
default_catalog_name | string | The name of the default catalog in the metastore. This field is deprecated. Please use "Default Namespace API" to configure the default catalog for a Databricks workspace. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | deployment_name | Gets the metastore assignment for the workspace being accessed. |
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
- get
Gets the metastore assignment for the workspace being accessed.
SELECT
metastore_id,
workspace_id,
default_catalog_name
FROM databricks_workspace.catalog.current_metastore_assignment
WHERE deployment_name = '{{ deployment_name }}' -- required
;