Skip to main content

metastores

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

Overview

Namemetastores
TypeResource
Iddatabricks_account.unity_catalog.metastores

Fields

The following fields are returned by SELECT queries:

The metastore was successfully returned.

NameDatatypeDescription
namestring
default_data_access_config_idstring
global_metastore_idstring
metastore_idstring
storage_root_credential_idstring
delta_sharing_organization_namestring
storage_root_credential_namestring
cloudstring
created_atinteger
created_bystring
delta_sharing_recipient_token_lifetime_in_secondsinteger
delta_sharing_scopestring
external_access_enabledboolean
ownerstring
privilege_model_versionstring
regionstring
storage_rootstring
updated_atinteger
updated_bystring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a Unity Catalog metastore from an account, both specified by ID.
listselectGets all Unity Catalog metastores associated with an account specified by ID.
createinsertCreates a Unity Catalog metastore.
updatereplaceUpdates an existing Unity Catalog metastore.
deletedeleteDeletes a Unity Catalog metastore for an account, both specified by ID.

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

SELECT examples

Gets a Unity Catalog metastore from an account, both specified by ID.

SELECT
name,
default_data_access_config_id,
global_metastore_id,
metastore_id,
storage_root_credential_id,
delta_sharing_organization_name,
storage_root_credential_name,
cloud,
created_at,
created_by,
delta_sharing_recipient_token_lifetime_in_seconds,
delta_sharing_scope,
external_access_enabled,
owner,
privilege_model_version,
region,
storage_root,
updated_at,
updated_by
FROM databricks_account.unity_catalog.metastores;

INSERT examples

Creates a Unity Catalog metastore.

INSERT INTO databricks_account.unity_catalog.metastores (
data__metastore_info
)
SELECT
'{{ metastore_info }}'
;

REPLACE examples

Updates an existing Unity Catalog metastore.

REPLACE databricks_account.unity_catalog.metastores
SET
data__metastore_info = '{{ metastore_info }}'
WHERE
;

DELETE examples

Deletes a Unity Catalog metastore for an account, both specified by ID.

DELETE FROM databricks_account.unity_catalog.metastores;