curl --request POST \
--url https://api.select.dev/v2/databricks-connections/actions/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"name": "<string>",
"databricks_account_id": "<string>",
"primary_workspace_url": "<string>",
"warehouse_id": "<string>",
"credentials": {
"client_id": "<string>",
"client_secret": "<string>"
},
"sync_enabled": true,
"query_sanitization_enabled": false
}
'import requests
url = "https://api.select.dev/v2/databricks-connections/actions/test"
payload = {
"name": "<string>",
"databricks_account_id": "<string>",
"primary_workspace_url": "<string>",
"warehouse_id": "<string>",
"credentials": {
"client_id": "<string>",
"client_secret": "<string>"
},
"sync_enabled": True,
"query_sanitization_enabled": False
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
databricks_account_id: '<string>',
primary_workspace_url: '<string>',
warehouse_id: '<string>',
credentials: {client_id: '<string>', client_secret: '<string>'},
sync_enabled: true,
query_sanitization_enabled: false
})
};
fetch('https://api.select.dev/v2/databricks-connections/actions/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.select.dev/v2/databricks-connections/actions/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'databricks_account_id' => '<string>',
'primary_workspace_url' => '<string>',
'warehouse_id' => '<string>',
'credentials' => [
'client_id' => '<string>',
'client_secret' => '<string>'
],
'sync_enabled' => true,
'query_sanitization_enabled' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.select.dev/v2/databricks-connections/actions/test"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.select.dev/v2/databricks-connections/actions/test")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/databricks-connections/actions/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"checks": [
{
"id": "connectivity",
"label": "<string>",
"status": "passed",
"message": "<string>",
"docs_link": "<string>"
}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Test a Databricks connection configuration
Run every check against a proposed configuration, persisting nothing.
curl --request POST \
--url https://api.select.dev/v2/databricks-connections/actions/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"name": "<string>",
"databricks_account_id": "<string>",
"primary_workspace_url": "<string>",
"warehouse_id": "<string>",
"credentials": {
"client_id": "<string>",
"client_secret": "<string>"
},
"sync_enabled": true,
"query_sanitization_enabled": false
}
'import requests
url = "https://api.select.dev/v2/databricks-connections/actions/test"
payload = {
"name": "<string>",
"databricks_account_id": "<string>",
"primary_workspace_url": "<string>",
"warehouse_id": "<string>",
"credentials": {
"client_id": "<string>",
"client_secret": "<string>"
},
"sync_enabled": True,
"query_sanitization_enabled": False
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
databricks_account_id: '<string>',
primary_workspace_url: '<string>',
warehouse_id: '<string>',
credentials: {client_id: '<string>', client_secret: '<string>'},
sync_enabled: true,
query_sanitization_enabled: false
})
};
fetch('https://api.select.dev/v2/databricks-connections/actions/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.select.dev/v2/databricks-connections/actions/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'databricks_account_id' => '<string>',
'primary_workspace_url' => '<string>',
'warehouse_id' => '<string>',
'credentials' => [
'client_id' => '<string>',
'client_secret' => '<string>'
],
'sync_enabled' => true,
'query_sanitization_enabled' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.select.dev/v2/databricks-connections/actions/test"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.select.dev/v2/databricks-connections/actions/test")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/databricks-connections/actions/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"primary_workspace_url\": \"<string>\",\n \"warehouse_id\": \"<string>\",\n \"credentials\": {\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\"\n },\n \"sync_enabled\": true,\n \"query_sanitization_enabled\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"checks": [
{
"id": "connectivity",
"label": "<string>",
"status": "passed",
"message": "<string>",
"docs_link": "<string>"
}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Authorizations
Organization API key (sl_…).
Headers
The organization ID the request is scoped to.
Body
A Databricks connection to add.
Display name for the connection, as shown throughout SELECT.
The Databricks account to read usage and spend for. Letters, digits and hyphens only.
^[a-zA-Z0-9\-]+$URL of the workspace to connect through, including the scheme — for example https://my-workspace.cloud.databricks.com. It must be in the region whose usage this connection should cover.
The SQL warehouse in that workspace to run queries on. Letters, digits and hyphens only.
^[a-zA-Z0-9\-]+$The service principal SELECT authenticates as. Validated against Databricks before the connection is added.
Show child attributes
Show child attributes
Whether SELECT starts syncing data for this connection.
Whether query text is sanitized before SELECT stores it.
Response
Successful Response
The result of validating a connection's configuration against Databricks.

