Skip to main content

system_schemas

Operations on a system_schemas resource.

Overview

Namesystem_schemas
TypeResource
Iddatabricks_workspace.unitycatalog.system_schemas

Fields

NameDatatype
schemastring
statestring

Methods

NameAccessible byRequired ParamsDescription
listSELECTmetastore_id, deployment_nameGets an array of system schemas for a metastore. The caller must be an account admin or a metastore admin.
disableEXECmetastore_id, schema_name, deployment_nameDisables the system schema and removes it from the system catalog. The caller must be an account admin or a metastore admin.
enableEXECmetastore_id, schema_name, deployment_nameEnables the system schema and adds it to the system catalog. The caller must be an account admin or a metastore admin.

SELECT examples

SELECT
schema,
state
FROM databricks_workspace.unitycatalog.system_schemas
WHERE metastore_id = '{{ metastore_id }}' AND
deployment_name = '{{ deployment_name }}';