@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)
Get catalog workspace bindings.
|
GetCatalogWorkspaceBindingsResponse |
get(String name) |
Iterable<WorkspaceBinding> |
getBindings(GetBindingsRequest request)
Get securable workspace bindings.
|
Iterable<WorkspaceBinding> |
getBindings(String securableType,
String securableName) |
WorkspaceBindingsService |
impl() |
UpdateCatalogWorkspaceBindingsResponse |
update(String name) |
UpdateCatalogWorkspaceBindingsResponse |
update(UpdateWorkspaceBindings request)
Update catalog workspace bindings.
|
UpdateWorkspaceBindingsResponse |
updateBindings(String securableType,
String securableName) |
UpdateWorkspaceBindingsResponse |
updateBindings(UpdateWorkspaceBindingsParameters request)
Update securable workspace bindings.
|
public WorkspaceBindingsAPI(ApiClient apiClient)
public WorkspaceBindingsAPI(WorkspaceBindingsService mock)
public GetCatalogWorkspaceBindingsResponse get(String name)
public GetCatalogWorkspaceBindingsResponse get(GetWorkspaceBindingRequest request)
Gets workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.
public Iterable<WorkspaceBinding> getBindings(String securableType, String securableName)
public Iterable<WorkspaceBinding> getBindings(GetBindingsRequest request)
Gets workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.
public UpdateCatalogWorkspaceBindingsResponse update(String name)
public UpdateCatalogWorkspaceBindingsResponse update(UpdateWorkspaceBindings request)
Updates workspace bindings of the catalog. The caller must be a metastore admin or an owner of the catalog.
public UpdateWorkspaceBindingsResponse updateBindings(String securableType, String securableName)
public UpdateWorkspaceBindingsResponse updateBindings(UpdateWorkspaceBindingsParameters request)
Updates workspace bindings of the securable. The caller must be a metastore admin or an owner of the securable.
public WorkspaceBindingsService impl()
Copyright © 2025. All rights reserved.