Test connection by data source definition
Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
Request Body
typestring · enum · requiredType of database, where test should connect to.
Enum values:POSTGRESQLREDSHIFTVERTICASNOWFLAKEADSBIGQUERYMSSQLPRESTOExample: POSTGRESQL
clientIdstringId for client based authentication for data sources which supports it.
clientSecretstringSecret for client based authentication for data sources which supports it.
parametersobject[]passwordstringDatabase user password.
Example: admin123privateKeystringPrivate key for data sources which supports key-pair authentication.
privateKeyPassphrasestringPassphrase for a encrypted version of a private key.
schemastringDatabase schema.
Example: publictokenstringSecret for token based authentication for data sources which supports it.
urlstringURL to database in JDBC format, where test should connect to.
Example: jdbc:postgresql://localhost:5432/db_nameusernamestringDatabase user name.
Example: dbadmin
Responses
The result of the test of a data source connection.
successfulboolean · requiredA flag indicating whether test passed or not.
Example: true
errorstringField containing more details in case of a failure. Details are available to a privileged user only.
Example: Connection exception: Failed to initialize pool: FATAL: password authentication failed for user "user"queryDurationMillisobjectA structure containing duration of the test queries run on a data source. It is omitted if an error happens.
Test data source connection by data source id
Test if it is possible to connect to a database using an existing data source definition.
path Parameters
dataSourceIdstring · pattern:^(?!\.)[.A-Za-z0-9_-…· requiredData source id
Request Body
clientIdstringId for client based authentication for data sources which supports it.
clientSecretstringSecret for client based authentication for data sources which supports it.
parametersobject[]passwordstringDatabase user password.
Example: admin123privateKeystringPrivate key for data sources which supports key-pair authentication.
privateKeyPassphrasestringPassphrase for a encrypted version of a private key.
schemastringDatabase schema.
Example: publictokenstringSecret for token based authentication for data sources which supports it.
urlstringURL to database in JDBC format, where test should connect to.
Example: jdbc:postgresql://localhost:5432/db_nameusernamestringDatabase user name.
Example: dbadmin
Responses
The result of the test of a data source connection.
successfulboolean · requiredA flag indicating whether test passed or not.
Example: true
errorstringField containing more details in case of a failure. Details are available to a privileged user only.
Example: Connection exception: Failed to initialize pool: FATAL: password authentication failed for user "user"queryDurationMillisobjectA structure containing duration of the test queries run on a data source. It is omitted if an error happens.