@Generated public interface ExternalLocationsService
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.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
Modifier and Type | Method and Description |
---|---|
ExternalLocationInfo |
create(CreateExternalLocation createExternalLocation)
Create an external location.
|
void |
delete(DeleteExternalLocationRequest deleteExternalLocationRequest)
Delete an external location.
|
ExternalLocationInfo |
get(GetExternalLocationRequest getExternalLocationRequest)
Get an external location.
|
ListExternalLocationsResponse |
list(ListExternalLocationsRequest listExternalLocationsRequest)
List external locations.
|
ExternalLocationInfo |
update(UpdateExternalLocation updateExternalLocation)
Update an external location.
|
ExternalLocationInfo create(CreateExternalLocation createExternalLocation)
Creates a new external location entry in the metastore. The caller must be a metastore admin or have the **CREATE_EXTERNAL_LOCATION** privilege on both the metastore and the associated storage credential.
void delete(DeleteExternalLocationRequest deleteExternalLocationRequest)
Deletes the specified external location from the metastore. The caller must be the owner of the external location.
ExternalLocationInfo get(GetExternalLocationRequest getExternalLocationRequest)
Gets an external location from the metastore. The caller must be either a metastore admin, the owner of the external location, or a user that has some privilege on the external location.
ListExternalLocationsResponse list(ListExternalLocationsRequest listExternalLocationsRequest)
Gets an array of external locations (__ExternalLocationInfo__ objects) from the metastore. The caller must be a metastore admin, the owner of the external location, or a user that has some privilege on the external location. There is no guarantee of a specific ordering of the elements in the array.
ExternalLocationInfo update(UpdateExternalLocation updateExternalLocation)
Updates an external location in the metastore. The caller must be the owner of the external location, or be a metastore admin. In the second case, the admin can only update the name of the external location.
Copyright © 2024. All rights reserved.