@Generated public class CatalogsAPI extends Object
In Unity Catalog, admins and data stewards manage users and their access to data centrally across all of the workspaces in a Databricks account. Users in different workspaces can share access to the same data, depending on privileges granted centrally in Unity Catalog.
| Constructor and Description |
|---|
CatalogsAPI(ApiClient apiClient)
Regular-use constructor
|
CatalogsAPI(CatalogsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CatalogInfo |
create(CreateCatalog request)
Creates a new catalog instance in the parent metastore if the caller is a metastore admin or
has the **CREATE_CATALOG** privilege.
|
void |
delete(DeleteCatalogRequest request)
Deletes the catalog that matches the supplied name.
|
void |
delete(String name) |
CatalogInfo |
get(GetCatalogRequest request)
Gets the specified catalog in a metastore.
|
CatalogInfo |
get(String name) |
CatalogsService |
impl() |
Iterable<CatalogInfo> |
list(ListCatalogsRequest request)
Gets an array of catalogs in the metastore.
|
CatalogInfo |
update(UpdateCatalog request)
Updates the catalog that matches the supplied name.
|
public CatalogsAPI(ApiClient apiClient)
public CatalogsAPI(CatalogsService mock)
public CatalogInfo create(CreateCatalog request)
public void delete(String name)
public void delete(DeleteCatalogRequest request)
public CatalogInfo get(String name)
public CatalogInfo get(GetCatalogRequest request)
public Iterable<CatalogInfo> list(ListCatalogsRequest request)
public CatalogInfo update(UpdateCatalog request)
public CatalogsService impl()
Copyright © 2025. All rights reserved.