Skip to main content

Catalog Workspace Binding

View as Markdown

A binding between a workspace and a securable. When the isolation mode of the securable is ISOLATED, only bound workspaces can access it.

WorkspaceBindingInfo object​

A binding between a workspace and a securable. When the isolation mode of the securable is ISOLATED, only bound workspaces can access it.

workspace_idint64

The ID of the workspace that the binding applies to.

binding_typestring

One of READ_WRITE/READ_ONLY. Default is READ_WRITE. Only catalogs support BINDING_TYPE_READ_ONLY; other securable types accept only BINDING_TYPE_READ_WRITE.

Values:

  • BINDING_TYPE_READ_WRITE
  • BINDING_TYPE_READ_ONLY

Get catalog workspace bindings GA​

GET /api/2.1/unity-catalog/workspace-bindings/catalogs/{catalog_name}

Deprecated

Gets workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.

API scopes: unity-catalog

Parameters​

catalog_namestringRequiredpath

The name of the catalog.

Response​

workspacesarray of int64

The IDs of the workspaces that are bound to the catalog.

Update catalog workspace bindings GA​

PATCH /api/2.1/unity-catalog/workspace-bindings/catalogs/{catalog_name}

Deprecated

Updates workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.

API scopes: unity-catalog

Parameters​

catalog_namestringRequiredpath

The name of the catalog.

Request body​

assign_workspacesarray of int64

The IDs of the workspaces to bind to the catalog.

unassign_workspacesarray of int64

The IDs of the workspaces to unbind from the catalog.

Response​

workspacesarray of int64

The IDs of the workspaces that are bound to the catalog.