Tableau Connection

The Tableau connection type enables the Tableau Integrations.

Authenticating to Tableau

There are two ways to connect to Tableau using Airflow.

  1. Use Password and Username Authentication i.e. add a password and login to the Airflow connection.

  2. Use a Token Authentication i.e. add a token_name and personal_access_token to the Airflow connection.

Only one authorization method can be used at a time. If you need to manage multiple credentials or keys then you should configure multiple connections.

Default Connection IDs

All hooks and operators related to Tableau use tableau_default by default.

Configuring the Connection

Login (optional)

Specify the tableau username used for the initial connection. Used with password authentication.

Password (optional)

Specify the tableau password used for the initial connection. Used with password authentication.

Host

Specify the Sever URL used for Tableau.

Extra (optional)

Specify the extra parameters (as json dictionary) that can be used in Azure connection. The following parameters are all optional:

  • site_id: This corresponds to the contentUrl attribute in the Tableau REST API. The site_id is the portion of the URL that follows the /site/ in the URL. For example, “MarketingTeam” is the site_id in the following URL MyServer/#/site/MarketingTeam/projects. To specify the default site on Tableau Server, you can use an empty string '' (single quotes, no space). For Tableau Online, you must provide a value for the site_id. This is used for both token and password Authentication.

  • token_name: The personal access token name. This is used with token authentication.

  • personal_access_token: The personal access token value. This is used with token authentication.

When specifying the connection in environment variable you should specify it using URI syntax.

Note that all components of the URI should be URL-encoded.

For example:

export AIRFLOW_CONN_TABLEAU_DEFAULT='tableau://username:password@https%3A%2F%2FMY-SERVER%2F?site_id=example-id'

Was this entry helpful?