Tableau Connection¶
The Tableau connection type enables the Tableau Integrations.
Authenticating to Tableau¶
There are two ways to connect to Tableau using Airflow.
Use Password and Username Authentication i.e. add a
password
andlogin
to the Airflow connection.Use a Token Authentication i.e. add a
token_name
andpersonal_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. Thesite_id
is the portion of the URL that follows the /site/ in the URL. For example, “MarketingTeam” is thesite_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 thesite_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: