@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)
Create a storage credential.
|
void |
delete(DeleteStorageCredentialRequest deleteStorageCredentialRequest)
Delete a credential.
|
StorageCredentialInfo |
get(GetStorageCredentialRequest getStorageCredentialRequest)
Get a credential.
|
ListStorageCredentialsResponse |
list()
List credentials.
|
StorageCredentialInfo |
update(UpdateStorageCredential updateStorageCredential)
Update a credential.
|
ValidateStorageCredentialResponse |
validate(ValidateStorageCredential validateStorageCredential)
Validate a storage credential.
|
StorageCredentialInfo create(CreateStorageCredential createStorageCredential)
Creates a new storage credential.
void delete(DeleteStorageCredentialRequest deleteStorageCredentialRequest)
Deletes a storage credential from the metastore. The caller must be an owner of the storage credential.
StorageCredentialInfo get(GetStorageCredentialRequest getStorageCredentialRequest)
Gets a storage credential from the metastore. The caller must be a metastore admin, the owner of the storage credential, or have some permission on the storage credential.
ListStorageCredentialsResponse list()
Gets an array of storage credentials (as __StorageCredentialInfo__ objects). The array is limited to only those storage credentials the caller has permission to access. If the caller is a metastore admin, all storage credentials will be retrieved. There is no guarantee of a specific ordering of the elements in the array.
StorageCredentialInfo update(UpdateStorageCredential updateStorageCredential)
Updates a storage credential on the metastore.
ValidateStorageCredentialResponse validate(ValidateStorageCredential validateStorageCredential)
Validates a storage credential. At least one of __external_location_name__ and __url__ need to be provided. If only one of them is provided, it will be used for validation. And if both are provided, the __url__ will be used for validation, and __external_location_name__ will be ignored when checking overlapping urls.
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 © 2023. All rights reserved.