Skip to main content

workspace_bindings

Operations on a workspace_bindings resource.

Overview

Nameworkspace_bindings
TypeResource
Iddatabricks_workspace.unitycatalog.workspace_bindings

Fields

NameDatatype
binding_typestring
workspace_idinteger

Methods

NameAccessible byRequired ParamsDescription
getbindingsSELECTsecurable_name, securable_type, deployment_nameGets workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.
updateUPDATEname, deployment_nameUpdates workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.
updatebindingsUPDATEsecurable_name, securable_type, deployment_nameUpdates workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.

SELECT examples

SELECT
binding_type,
workspace_id
FROM databricks_workspace.unitycatalog.workspace_bindings
WHERE securable_name = '{{ securable_name }}' AND
securable_type = '{{ securable_type }}' AND
deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a workspace_bindings resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.unitycatalog.workspace_bindings
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE name = '{{ name }}' AND
deployment_name = '{{ deployment_name }}';