@Generated public class ExternalLocationsAPI extends Object
Databricks recommends using external locations rather than using storage credentials directly.
To create external locations, you must be a metastore admin or a user with the **CREATE_EXTERNAL_LOCATION** privilege.
| Constructor and Description |
|---|
ExternalLocationsAPI(ApiClient apiClient)
Regular-use constructor
|
ExternalLocationsAPI(ExternalLocationsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
ExternalLocationInfo |
create(CreateExternalLocation request)
Creates a new external location entry in the metastore.
|
void |
delete(DeleteExternalLocationRequest request)
Deletes the specified external location from the metastore.
|
void |
delete(String name) |
ExternalLocationInfo |
get(GetExternalLocationRequest request)
Gets an external location from the metastore.
|
ExternalLocationInfo |
get(String name) |
ExternalLocationsService |
impl() |
Iterable<ExternalLocationInfo> |
list(ListExternalLocationsRequest request)
Gets an array of external locations (__ExternalLocationInfo__ objects) from the metastore.
|
ExternalLocationInfo |
update(UpdateExternalLocation request)
Updates an external location in the metastore.
|
public ExternalLocationsAPI(ApiClient apiClient)
public ExternalLocationsAPI(ExternalLocationsService mock)
public ExternalLocationInfo create(CreateExternalLocation request)
public void delete(String name)
public void delete(DeleteExternalLocationRequest request)
public ExternalLocationInfo get(String name)
public ExternalLocationInfo get(GetExternalLocationRequest request)
public Iterable<ExternalLocationInfo> list(ListExternalLocationsRequest 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 ExternalLocationInfo update(UpdateExternalLocation request)
public ExternalLocationsService impl()
Copyright © 2026. All rights reserved.