Resolve a resource to its canonical SRN
curl --request POST \
--url https://api.select.dev/v2/srn/actions/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"resource_info": {
"identifying_metadata": {
"name": "ANALYTICS_WH"
},
"resource_type": "warehouse"
},
"org_id": "<string>",
"snowflake_org_name": "<string>",
"snowflake_account_name": "<string>",
"databricks_account_id": "<string>",
"databricks_workspace_id": "<string>",
"bigquery_project": "<string>"
}
'import requests
url = "https://api.select.dev/v2/srn/actions/resolve"
payload = {
"resource_info": {
"identifying_metadata": { "name": "ANALYTICS_WH" },
"resource_type": "warehouse"
},
"org_id": "<string>",
"snowflake_org_name": "<string>",
"snowflake_account_name": "<string>",
"databricks_account_id": "<string>",
"databricks_workspace_id": "<string>",
"bigquery_project": "<string>"
}
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({
resource_info: {identifying_metadata: {name: 'ANALYTICS_WH'}, resource_type: 'warehouse'},
org_id: '<string>',
snowflake_org_name: '<string>',
snowflake_account_name: '<string>',
databricks_account_id: '<string>',
databricks_workspace_id: '<string>',
bigquery_project: '<string>'
})
};
fetch('https://api.select.dev/v2/srn/actions/resolve', 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/srn/actions/resolve",
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([
'resource_info' => [
'identifying_metadata' => [
'name' => 'ANALYTICS_WH'
],
'resource_type' => 'warehouse'
],
'org_id' => '<string>',
'snowflake_org_name' => '<string>',
'snowflake_account_name' => '<string>',
'databricks_account_id' => '<string>',
'databricks_workspace_id' => '<string>',
'bigquery_project' => '<string>'
]),
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/srn/actions/resolve"
payload := strings.NewReader("{\n \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\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/srn/actions/resolve")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/srn/actions/resolve")
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 \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"srn": "<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": [
{}
]
}SRN
Resolve a resource to its canonical SRN
POST
/
srn
/
actions
/
resolve
Resolve a resource to its canonical SRN
curl --request POST \
--url https://api.select.dev/v2/srn/actions/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"resource_info": {
"identifying_metadata": {
"name": "ANALYTICS_WH"
},
"resource_type": "warehouse"
},
"org_id": "<string>",
"snowflake_org_name": "<string>",
"snowflake_account_name": "<string>",
"databricks_account_id": "<string>",
"databricks_workspace_id": "<string>",
"bigquery_project": "<string>"
}
'import requests
url = "https://api.select.dev/v2/srn/actions/resolve"
payload = {
"resource_info": {
"identifying_metadata": { "name": "ANALYTICS_WH" },
"resource_type": "warehouse"
},
"org_id": "<string>",
"snowflake_org_name": "<string>",
"snowflake_account_name": "<string>",
"databricks_account_id": "<string>",
"databricks_workspace_id": "<string>",
"bigquery_project": "<string>"
}
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({
resource_info: {identifying_metadata: {name: 'ANALYTICS_WH'}, resource_type: 'warehouse'},
org_id: '<string>',
snowflake_org_name: '<string>',
snowflake_account_name: '<string>',
databricks_account_id: '<string>',
databricks_workspace_id: '<string>',
bigquery_project: '<string>'
})
};
fetch('https://api.select.dev/v2/srn/actions/resolve', 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/srn/actions/resolve",
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([
'resource_info' => [
'identifying_metadata' => [
'name' => 'ANALYTICS_WH'
],
'resource_type' => 'warehouse'
],
'org_id' => '<string>',
'snowflake_org_name' => '<string>',
'snowflake_account_name' => '<string>',
'databricks_account_id' => '<string>',
'databricks_workspace_id' => '<string>',
'bigquery_project' => '<string>'
]),
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/srn/actions/resolve"
payload := strings.NewReader("{\n \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\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/srn/actions/resolve")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/srn/actions/resolve")
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 \"resource_info\": {\n \"identifying_metadata\": {\n \"name\": \"ANALYTICS_WH\"\n },\n \"resource_type\": \"warehouse\"\n },\n \"org_id\": \"<string>\",\n \"snowflake_org_name\": \"<string>\",\n \"snowflake_account_name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"databricks_workspace_id\": \"<string>\",\n \"bigquery_project\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"srn": "<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
application/json
A cloud resource to resolve to its canonical SELECT Resource Name (SRN).
Provide the resource's resource_type and the identifying_metadata that
pins down the specific resource. The keys required in identifying_metadata
depend on resource_type; see the examples for the common types.
Show child attributes
Show child attributes
Examples:
{
"identifying_metadata": { "name": "ANALYTICS_WH" },
"resource_type": "warehouse"
}
{
"identifying_metadata": {
"database_name": "PROD",
"name": "ORDERS",
"schema_name": "PUBLIC"
},
"resource_type": "storage"
}
{
"identifying_metadata": {
"query_pattern_id": "a1b2c3d4",
"query_type": "SELECT"
},
"resource_type": "query_pattern"
}
{
"identifying_metadata": {
"node_name": "fct_orders",
"node_resource_type": "model",
"project_name": "analytics"
},
"resource_type": "dbt"
}
{
"identifying_metadata": {
"database_name": "PROD",
"name": "REFRESH_ORDERS",
"schema_name": "PUBLIC"
},
"resource_type": "task"
}
Response
Successful Response

