@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)
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 CatalogInfo update(UpdateCatalog request)
public CatalogsService impl()
Copyright © 2026. All rights reserved.