list_snowflake_connections
curl --request POST \
--url https://api.rippit.com/v1/list_snowflake_connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snowflake_url": "<string>",
"warehouse": "<string>",
"database": "<string>"
}
'import requests
url = "https://api.rippit.com/v1/list_snowflake_connections"
payload = {
"snowflake_url": "<string>",
"warehouse": "<string>",
"database": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snowflake_url: '<string>', warehouse: '<string>', database: '<string>'})
};
fetch('https://api.rippit.com/v1/list_snowflake_connections', 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.rippit.com/v1/list_snowflake_connections",
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([
'snowflake_url' => '<string>',
'warehouse' => '<string>',
'database' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.rippit.com/v1/list_snowflake_connections"
payload := strings.NewReader("{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.rippit.com/v1/list_snowflake_connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rippit.com/v1/list_snowflake_connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySnowflake
list_snowflake_connections
List Snowflake connections
List the workspace’s connections to the customer’s own Snowflake account, plus a ready-to-run setup script for a new one.
How to use:
- Any Snowsight link fills
setup(a database or table page also names the database); ask the user only for whatsetupstill has null. setup_sqlruns as ACCOUNTADMIN and creates a user, role and warehouse, so confirm with the user before running it through a Snowflake SQL tool of your own. Otherwise give it to them as one block, withsetup.worksheets_urlas the blank SQL file to paste it into.connect_urlis the same setup as a web page.- Once it has run, pass
setup’s account, user, user_role and warehouse to manage_snowflake_connection create. - A connection with
active: falseand asetup_errorneeds that error fixed in Snowflake, then manage_snowflake_connection with actionupdate. - Workspace admins only; anyone else gets a 403 on every Snowflake call, so don’t retry.
list_snowflake_connections
curl --request POST \
--url https://api.rippit.com/v1/list_snowflake_connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"snowflake_url": "<string>",
"warehouse": "<string>",
"database": "<string>"
}
'import requests
url = "https://api.rippit.com/v1/list_snowflake_connections"
payload = {
"snowflake_url": "<string>",
"warehouse": "<string>",
"database": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({snowflake_url: '<string>', warehouse: '<string>', database: '<string>'})
};
fetch('https://api.rippit.com/v1/list_snowflake_connections', 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.rippit.com/v1/list_snowflake_connections",
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([
'snowflake_url' => '<string>',
'warehouse' => '<string>',
'database' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.rippit.com/v1/list_snowflake_connections"
payload := strings.NewReader("{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.rippit.com/v1/list_snowflake_connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rippit.com/v1/list_snowflake_connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"snowflake_url\": \"<string>\",\n \"warehouse\": \"<string>\",\n \"database\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Any app.snowflake.com link the user pasted (account, database, table page, ...). Fills account, database, schema and table into setup.
Maximum string length:
2048Existing warehouse to use. Omit to have the script create RIPPIT_WH (XSMALL, auto-suspends after 60s).
Required string length:
1 - 256Database to grant read on, when the link has none.
Required string length:
1 - 256Response
200
Tool result.
Was this page helpful?