Version 4.0.24.12
Test a connection configuration.
Note that a connection's 'dialect' property has a 'connection_tests' property that lists the specific types of tests that the connection supports.
This API is rate limited.
Unsupported tests in the request will be ignored.
Request
PUT
/connections/test
Datatype
Description
Request
body
Expand HTTP Body definition...
body
Connection
Expand DBConnection definition...
can
lock
Operations the current user is able to perform on this object
name
Name of the connection. Also used as the unique identifier
dialect
lock
(Read-only) SQL Dialect details
snippets
pdts_enabled
lock
True if PDTs are enabled on this connection
host
Host name/address of server; or the string 'localhost' in case of a connection over an SSH tunnel.
port
Port number on server. If the connection is over an SSH tunnel, then the local port associated with the SSH tunnel.
username
Username for server authentication
password
(Write-Only) Password for server authentication
uses_oauth
lock
Whether the connection uses OAuth for authentication.
certificate
(Write-Only) Base64 encoded Certificate body for server authentication (when appropriate for dialect).
file_type
(Write-Only) Certificate keyfile type - .json or .p12
database
Database name
db_timezone
Time zone of database
query_timezone
Timezone to use in queries
schema
Schema name
max_connections
Maximum number of concurrent connection to use
max_billing_gigabytes
Maximum size of query in GBs (BigQuery only, can be a user_attribute name)
ssl
Use SSL/TLS when connecting to server
verify_ssl
Verify the SSL
tmp_db_name
Name of temporary database (if used)
jdbc_additional_params
Additional params to add to JDBC connection string
pool_timeout
Connection Pool Timeout, in seconds
dialect_name
(Read/Write) SQL Dialect name
supports_data_studio_link
lock
Database connection has the ability to support open data studio from explore
created_at
lock
Creation date for this connection
user_id
lock
Id of user who last modified this connection configuration
example
lock
Is this an example connection?
user_db_credentials
(Limited access feature) Are per user db credentials enabled. Enabling will remove previously set username and password
user_attribute_fields
maintenance_cron
Cron string specifying when maintenance such as PDT trigger checks and drops should be performed
last_regen_at
lock
Unix timestamp at start of last completed PDT trigger check process
last_reap_at
lock
Unix timestamp at start of last completed PDT reap process
sql_runner_precache_tables
Precache tables in the SQL Runner
sql_writing_with_info_schema
Fetch Information Schema For SQL Writing
after_connect_statements
SQL statements (semicolon separated) to issue after connecting to the database. Requires `custom_after_connect_statements` license feature
pdt_context_override
db_connection_override for this connection in the `pdt` maintenance context
managed
lock
Is this connection created and managed by Looker
custom_local_port
This field is only applicable to connections over an SSH Tunnel. The value of this field would be the local port associated with the SSH tunnel if configured manually. Otherwise either enter NULL or exclude this field.
tunnel_id
The Id of the ssh tunnel this connection uses
uses_tns
Enable Transparent Network Substrate (TNS) connections
pdt_concurrency
Maximum number of threads to use to build PDTs in parallel
disable_context_comment
When disable_context_comment is true comment will not be added to SQL
oauth_application_id
An External OAuth Application to use for authenticating to the database
always_retry_failed_builds
When true, error PDTs will be retried every regenerator cycle
cost_estimate_enabled
When true, query cost estimate will be displayed in explore.
pdt_api_control_enabled
PDT builds on this connection can be kicked off and cancelled via API.
connection_pooling
Enable database connection pooling.
query
Expand HTTP Query definition...
tests
Response
200: Test results
Datatype
Description
(array)
can
lock
Operations the current user is able to perform on this object
connection_string
lock
JDBC connection string. (only populated in the 'connect' test)
message
lock
Result message of test
name
lock
Name of test
status
lock
Result code of test
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link