Interface TokensService


  • @Generated
    public interface TokensService
    The Token API allows you to create, list, and revoke tokens that can be used to authenticate and access Databricks REST APIs.

    This is the high-level interface, that contains generated methods.

    Evolving: this interface is under development. Method signatures may change.

    • Method Detail

      • create

        CreateTokenResponse create​(CreateTokenRequest createTokenRequest)
        Create a user token.

        Creates and returns a token for a user. If this call is made through token authentication, it creates a token with the same client ID as the authenticated token. If the user's token quota is exceeded, this call returns an error **QUOTA_EXCEEDED**.

      • delete

        void delete​(RevokeTokenRequest revokeTokenRequest)
        Revoke token.

        Revokes an access token.

        If a token with the specified ID is not valid, this call returns an error **RESOURCE_DOES_NOT_EXIST**.

      • list

        ListTokensResponse list()
        List tokens.

        Lists all the valid tokens for a user-workspace pair.