@Generated public class CredentialsAPI extends Object
To create credentials, you must be a Databricks account admin or have the `CREATE SERVICE CREDENTIAL privilege. The user who creates the credential can delegate ownership to another user or group to manage permissions on it
| Constructor and Description |
|---|
CredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
CredentialsAPI(CredentialsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CredentialInfo |
createCredential(CreateCredentialRequest request)
Create a credential.
|
void |
deleteCredential(DeleteCredentialRequest request)
Delete a credential.
|
void |
deleteCredential(String nameArg) |
TemporaryCredentials |
generateTemporaryServiceCredential(GenerateTemporaryServiceCredentialRequest request)
Generate a temporary service credential.
|
CredentialInfo |
getCredential(GetCredentialRequest request)
Get a credential.
|
CredentialInfo |
getCredential(String nameArg) |
CredentialsService |
impl() |
Iterable<CredentialInfo> |
listCredentials(ListCredentialsRequest request)
List credentials.
|
CredentialInfo |
updateCredential(String nameArg) |
CredentialInfo |
updateCredential(UpdateCredentialRequest request)
Update a credential.
|
ValidateCredentialResponse |
validateCredential(ValidateCredentialRequest request)
Validate a credential.
|
public CredentialsAPI(ApiClient apiClient)
public CredentialsAPI(CredentialsService mock)
public CredentialInfo createCredential(CreateCredentialRequest request)
Creates a new credential.
public void deleteCredential(String nameArg)
public void deleteCredential(DeleteCredentialRequest request)
Deletes a credential from the metastore. The caller must be an owner of the credential.
public TemporaryCredentials generateTemporaryServiceCredential(GenerateTemporaryServiceCredentialRequest request)
Returns a set of temporary credentials generated using the specified service credential. The caller must be a metastore admin or have the metastore privilege **ACCESS** on the service credential.
public CredentialInfo getCredential(String nameArg)
public CredentialInfo getCredential(GetCredentialRequest request)
Gets a credential from the metastore. The caller must be a metastore admin, the owner of the credential, or have any permission on the credential.
public Iterable<CredentialInfo> listCredentials(ListCredentialsRequest request)
Gets an array of credentials (as __CredentialInfo__ objects).
The array is limited to only the credentials that the caller has permission to access. If the caller is a metastore admin, retrieval of credentials is unrestricted. There is no guarantee of a specific ordering of the elements in the array.
public CredentialInfo updateCredential(String nameArg)
public CredentialInfo updateCredential(UpdateCredentialRequest request)
Updates a credential on the metastore.
The caller must be the owner of the credential or a metastore admin or have the `MANAGE` permission. If the caller is a metastore admin, only the __owner__ field can be changed.
public ValidateCredentialResponse validateCredential(ValidateCredentialRequest request)
Validates a credential.
Either the __credential_name__ or the cloud-specific credential must be provided.
The caller must be a metastore admin or the credential owner.
public CredentialsService impl()
Copyright © 2024. All rights reserved.