@Generated public interface StorageCredentialsService
Databricks recommends using external locations rather than using storage credentials directly.
To create storage credentials, you must be a Databricks account admin. The account admin who creates the storage credential can delegate ownership to another user or group to manage permissions on it.
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 |
|---|---|
StorageCredentialInfo |
create(CreateStorageCredential createStorageCredential)
Creates a new storage credential.
|
void |
delete(DeleteStorageCredentialRequest deleteStorageCredentialRequest)
Deletes a storage credential from the metastore.
|
StorageCredentialInfo |
get(GetStorageCredentialRequest getStorageCredentialRequest)
Gets a storage credential from the metastore.
|
ListStorageCredentialsResponse |
list(ListStorageCredentialsRequest listStorageCredentialsRequest)
Gets an array of storage credentials (as __StorageCredentialInfo__ objects).
|
StorageCredentialInfo |
update(UpdateStorageCredential updateStorageCredential)
Updates a storage credential on the metastore.
|
ValidateStorageCredentialResponse |
validate(ValidateStorageCredential validateStorageCredential)
Validates a storage credential.
|
StorageCredentialInfo create(CreateStorageCredential createStorageCredential)
The caller must be a metastore admin or have the **CREATE_STORAGE_CREDENTIAL** privilege on the metastore.
void delete(DeleteStorageCredentialRequest deleteStorageCredentialRequest)
StorageCredentialInfo get(GetStorageCredentialRequest getStorageCredentialRequest)
ListStorageCredentialsResponse list(ListStorageCredentialsRequest listStorageCredentialsRequest)
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.
StorageCredentialInfo update(UpdateStorageCredential updateStorageCredential)
The caller must be the owner of the storage credential or a metastore admin. If the caller is a metastore admin, only the **owner** field can be changed.
ValidateStorageCredentialResponse validate(ValidateStorageCredential validateStorageCredential)
Either the __storage_credential_name__ or the cloud-specific credential must be provided.
The caller must be a metastore admin or the storage credential owner or have the **CREATE_EXTERNAL_LOCATION** privilege on the metastore and the storage credential.
Copyright © 2026. All rights reserved.