@Generated public class WorkspaceBindingsAPI extends Object
NOTE: The __isolation_mode__ is configured for the securable itself (using its Update method) and the workspace bindings are only consulted when the securable's __isolation_mode__ is set to __ISOLATED__.
A securable's workspace bindings can be configured by a metastore admin or the owner of the securable.
The original path (/api/2.1/unity-catalog/workspace-bindings/catalogs/{name}) is deprecated. Please use the new path (/api/2.1/unity-catalog/bindings/{securable_type}/{securable_name}) which introduces the ability to bind a securable in READ_ONLY mode (catalogs only).
Securable types that support binding: - catalog - storage_credential - credential - external_location
| Constructor and Description |
|---|
WorkspaceBindingsAPI(ApiClient apiClient)
Regular-use constructor
|
WorkspaceBindingsAPI(WorkspaceBindingsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
GetCatalogWorkspaceBindingsResponse |
get(GetWorkspaceBindingRequest request)
Gets workspace bindings of the catalog.
|
GetCatalogWorkspaceBindingsResponse |
get(String name) |
Iterable<WorkspaceBinding> |
getBindings(GetBindingsRequest request)
Gets workspace bindings of the securable.
|
Iterable<WorkspaceBinding> |
getBindings(String securableType,
String securableName) |
WorkspaceBindingsService |
impl() |
UpdateCatalogWorkspaceBindingsResponse |
update(UpdateWorkspaceBindings request)
Updates workspace bindings of the catalog.
|
UpdateWorkspaceBindingsResponse |
updateBindings(UpdateWorkspaceBindingsParameters request)
Updates workspace bindings of the securable.
|
public WorkspaceBindingsAPI(ApiClient apiClient)
public WorkspaceBindingsAPI(WorkspaceBindingsService mock)
public GetCatalogWorkspaceBindingsResponse get(String name)
public GetCatalogWorkspaceBindingsResponse get(GetWorkspaceBindingRequest request)
public Iterable<WorkspaceBinding> getBindings(String securableType, String securableName)
public Iterable<WorkspaceBinding> getBindings(GetBindingsRequest request)
NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
public UpdateCatalogWorkspaceBindingsResponse update(UpdateWorkspaceBindings request)
public UpdateWorkspaceBindingsResponse updateBindings(UpdateWorkspaceBindingsParameters request)
public WorkspaceBindingsService impl()
Copyright © 2026. All rights reserved.