Package com.atlan.api

Class CredentialsEndpoint


public class CredentialsEndpoint extends HeraclesEndpoint
API endpoints for operating on Atlan's workflows.
  • Constructor Details

    • CredentialsEndpoint

      public CredentialsEndpoint(AtlanClient client)
  • Method Details

    • get

      public CredentialResponse get(String guid) throws AtlanException
      Retrieve a credential. Note that this will never contain sensitive information in the credential, such as usernames, passwords or client secrets or keys.
      Parameters:
      guid - unique identifier (GUID) of the credential
      Returns:
      non-sensitive information about the credential
      Throws:
      AtlanException - on any API communication issue
    • get

      public CredentialResponse get(String guid, RequestOptions options) throws AtlanException
      Retrieve a credential. Note that this will never contain sensitive information in the credential, such as usernames, passwords or client secrets or keys.
      Parameters:
      guid - unique identifier (GUID) of the credential
      options - to override default client settings
      Returns:
      non-sensitive information about the credential
      Throws:
      AtlanException - on any API communication issue
    • test

      public CredentialTestResponse test(Credential credential) throws AtlanException
      Test the provided credential, to confirm it works.
      Parameters:
      credential - details of the credential to test
      Returns:
      the test results
      Throws:
      AtlanException - on any API communication issue
    • test

      public CredentialTestResponse test(Credential credential, RequestOptions options) throws AtlanException
      Test the provided credential, to confirm it works.
      Parameters:
      credential - details of the credential to test
      options - to override default client settings
      Returns:
      the test results
      Throws:
      AtlanException - on any API communication issue
    • update

      public CredentialResponse update(String guid, Credential credential) throws AtlanException
      Update the provided credential in Atlan. Note that this will NOT test the credential first, so ensure it is valid before calling this method.
      Parameters:
      guid - unique identifier of the credential to update
      credential - details of the credential to include in the update
      Returns:
      details of the updated credential
      Throws:
      AtlanException - on any API communication issue
    • update

      public CredentialResponse update(String guid, Credential credential, RequestOptions options) throws AtlanException
      Update the provided credential in Atlan. Note that this will NOT test the credential first, so ensure it is valid before calling this method.
      Parameters:
      guid - unique identifier of the credential to update
      credential - details of the credential to include in the update
      options - to override default client settings
      Returns:
      details of the updated credential
      Throws:
      AtlanException - on any API communication issue