Querying data sources that require non-embedded credentials


Note: This is the developer preview release of the VizQL Data Service. This release is intended to offer developers early access to unreleased features.

🕐 1 min read

For data sources that require non-embedded credentials, you must add the following fields to your connection object in the body of the request.

You can add environment variables:

{
    "connection": {
        "tableauServerName": "",
        "siteId": "",
        "datasource": "",
        "databaseUsername": "",
        "databasePassword": ""
    },
    "query": {
        "columns": [
            {
                "columnName": "Category1"
            }
        ]
    }
}

Or you can pass the variables directly:

{
    "connection": {
        "tableauServerName": "",
        "siteId": "",
        "datasource": "",
        "databaseUsername": "test",
        "databasePassword": "password"
    },
    "query": {
        "columns": [
            {
                "columnName": "Category1"
            }
        ]
    }
}