@Generated public class CredentialsAPI extends Object
Constructor and Description |
---|
CredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
CredentialsAPI(CredentialsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
Credential |
create(CreateCredentialRequest request)
Create credential configuration.
|
Credential |
create(String credentialsName,
CreateCredentialAwsCredentials awsCredentials) |
void |
delete(DeleteCredentialRequest request)
Delete credential configuration.
|
void |
delete(String credentialsId) |
Credential |
get(GetCredentialRequest request)
Get credential configuration.
|
Credential |
get(String credentialsId) |
CredentialsService |
impl() |
Iterable<Credential> |
list()
Get all credential configurations.
|
public CredentialsAPI(ApiClient apiClient)
public CredentialsAPI(CredentialsService mock)
public Credential create(String credentialsName, CreateCredentialAwsCredentials awsCredentials)
public Credential create(CreateCredentialRequest request)
Creates a Databricks credential configuration that represents cloud cross-account credentials for a specified account. Databricks uses this to set up network infrastructure properly to host Databricks clusters. For your AWS IAM role, you need to trust the External ID (the Databricks Account API account ID) in the returned credential object, and configure the required access policy.
Save the response's `credentials_id` field, which is the ID for your new credential configuration object.
For information about how to create a new workspace with this API, see [Create a new workspace using the Account API]
[Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html
public void delete(String credentialsId)
public void delete(DeleteCredentialRequest request)
Deletes a Databricks credential configuration object for an account, both specified by ID. You cannot delete a credential that is associated with any workspace.
public Credential get(String credentialsId)
public Credential get(GetCredentialRequest request)
Gets a Databricks credential configuration object for an account, both specified by ID.
public Iterable<Credential> list()
Gets all Databricks credential configurations associated with an account specified by ID.
public CredentialsService impl()
Copyright © 2023. All rights reserved.