Create a Databricks rate sheet
curl --request POST \
--url https://api.select.dev/v2/databricks-rate-sheets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"rates": [
{
"amount": 123,
"billing_entities": [
"<string>"
]
}
],
"end_time": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.select.dev/v2/databricks-rate-sheets"
payload = {
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"rates": [
{
"amount": 123,
"billing_entities": ["<string>"]
}
],
"end_time": "2023-11-07T05:31:56Z"
}
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>',
start_time: '2023-11-07T05:31:56Z',
rates: [{amount: 123, billing_entities: ['<string>']}],
end_time: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.select.dev/v2/databricks-rate-sheets', 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-rate-sheets",
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>',
'start_time' => '2023-11-07T05:31:56Z',
'rates' => [
[
'amount' => 123,
'billing_entities' => [
'<string>'
]
]
],
'end_time' => '2023-11-07T05:31:56Z'
]),
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-rate-sheets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\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-rate-sheets")
.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 \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/databricks-rate-sheets")
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 \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "<string>",
"rates": [
{
"cloud": "aws",
"type": "global",
"amount": 123,
"billing_entities": [
"<string>"
]
}
],
"create_time": "<string>",
"update_time": "<string>",
"etag": "<string>",
"end_time": "<string>"
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}databricks-rate-sheets
Create a Databricks rate sheet
Creates a rate sheet. SELECT recalculates the account’s Databricks costs with the new rates in its next refresh. Requires databricks_rate_sheets:write, or settings:write on the Databricks account for a user.
POST
/
databricks-rate-sheets
Create a Databricks rate sheet
curl --request POST \
--url https://api.select.dev/v2/databricks-rate-sheets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"rates": [
{
"amount": 123,
"billing_entities": [
"<string>"
]
}
],
"end_time": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.select.dev/v2/databricks-rate-sheets"
payload = {
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"rates": [
{
"amount": 123,
"billing_entities": ["<string>"]
}
],
"end_time": "2023-11-07T05:31:56Z"
}
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>',
start_time: '2023-11-07T05:31:56Z',
rates: [{amount: 123, billing_entities: ['<string>']}],
end_time: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.select.dev/v2/databricks-rate-sheets', 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-rate-sheets",
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>',
'start_time' => '2023-11-07T05:31:56Z',
'rates' => [
[
'amount' => 123,
'billing_entities' => [
'<string>'
]
]
],
'end_time' => '2023-11-07T05:31:56Z'
]),
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-rate-sheets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"databricks_account_id\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\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-rate-sheets")
.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 \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/databricks-rate-sheets")
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 \"start_time\": \"2023-11-07T05:31:56Z\",\n \"rates\": [\n {\n \"amount\": 123,\n \"billing_entities\": [\n \"<string>\"\n ]\n }\n ],\n \"end_time\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"databricks_account_id": "<string>",
"start_time": "<string>",
"rates": [
{
"cloud": "aws",
"type": "global",
"amount": 123,
"billing_entities": [
"<string>"
]
}
],
"create_time": "<string>",
"update_time": "<string>",
"etag": "<string>",
"end_time": "<string>"
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "validation_failed",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Body
application/json
A Databricks rate sheet to create.
Response
Successful Response
A set of negotiated rates for one Databricks account, over a period.
SELECT uses the rates in place of the Databricks list prices when it calculates the cost of the account's usage in that period.

