@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.
|
ExternalLocationInfo |
create(String name,
String url,
String credentialName) |
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(String name) |
ExternalLocationInfo |
update(UpdateExternalLocation request)
Updates an external location in the metastore.
|
public ExternalLocationsAPI(ApiClient apiClient)
public ExternalLocationsAPI(ExternalLocationsService mock)
public ExternalLocationInfo create(String name, String url, String credentialName)
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)
public ExternalLocationInfo update(String name)
public ExternalLocationInfo update(UpdateExternalLocation request)
public ExternalLocationsService impl()
Copyright © 2025. All rights reserved.