Marketplace
Register custom database pricing
Register your own managed database rates, keyed by engine, edition, deployment option, storage type and instance type alongside the usual provider, service and region.
An entry is upserted on the full natural key (provider, service, region, availability zone, usage type, engine, edition, deployment option, billing config, storage type, instance type, architecture and period billing hours), so re-posting with a new cost keeps its id; changing any key field mints a new one.
The returned id is what you attach with the costgraph.ai/pricing-id.database label or tag.
POST
/
marketplace
/
providers
/
databases
Register custom database pricing
curl --request POST \
--url https://pricing.baselinehq.cloud/marketplace/providers/databases \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}
'import requests
url = "https://pricing.baselinehq.cloud/marketplace/providers/databases"
payload = { "entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entries: [
{
architecture: '<string>',
availability_zone: '<string>',
billing_config: '<string>',
capacity_unit: '<string>',
cost_per_capacity_unit: 123,
cost_per_hour: 123,
cost_per_io_request: 123,
cost_per_iops_hour: 123,
cost_per_storage_gb_hour: 123,
cost_per_throughput_mbps_hour: 123,
cost_per_vcpu_license_hour: 123,
cpu_cores: 123,
cpu_cores_cost_per_hour: 123,
created_at: '<string>',
currency: '<string>',
deployment_option: '<string>',
edition: '<string>',
engine: '<string>',
id: '<string>',
instance_type: '<string>',
max_iops: 123,
max_storage_gb: 123,
max_throughput_mbps: 123,
min_iops: 123,
min_storage_gb: 123,
min_throughput_mbps: 123,
native_cost_per_hour: 123,
native_cost_per_storage_gb_hour: 123,
period_billing_hours: 123,
provider: '<string>',
ram_gb: 123,
ram_gb_cost_per_hour: 123,
raw_pricing_data: {},
region: '<string>',
service: '<string>',
storage_type: '<string>',
tags: {},
updated_at: '<string>',
usage_type: '<string>'
}
]
})
};
fetch('https://pricing.baselinehq.cloud/marketplace/providers/databases', 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://pricing.baselinehq.cloud/marketplace/providers/databases",
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([
'entries' => [
[
'architecture' => '<string>',
'availability_zone' => '<string>',
'billing_config' => '<string>',
'capacity_unit' => '<string>',
'cost_per_capacity_unit' => 123,
'cost_per_hour' => 123,
'cost_per_io_request' => 123,
'cost_per_iops_hour' => 123,
'cost_per_storage_gb_hour' => 123,
'cost_per_throughput_mbps_hour' => 123,
'cost_per_vcpu_license_hour' => 123,
'cpu_cores' => 123,
'cpu_cores_cost_per_hour' => 123,
'created_at' => '<string>',
'currency' => '<string>',
'deployment_option' => '<string>',
'edition' => '<string>',
'engine' => '<string>',
'id' => '<string>',
'instance_type' => '<string>',
'max_iops' => 123,
'max_storage_gb' => 123,
'max_throughput_mbps' => 123,
'min_iops' => 123,
'min_storage_gb' => 123,
'min_throughput_mbps' => 123,
'native_cost_per_hour' => 123,
'native_cost_per_storage_gb_hour' => 123,
'period_billing_hours' => 123,
'provider' => '<string>',
'ram_gb' => 123,
'ram_gb_cost_per_hour' => 123,
'raw_pricing_data' => [
],
'region' => '<string>',
'service' => '<string>',
'storage_type' => '<string>',
'tags' => [
],
'updated_at' => '<string>',
'usage_type' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://pricing.baselinehq.cloud/marketplace/providers/databases"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://pricing.baselinehq.cloud/marketplace/providers/databases")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pricing.baselinehq.cloud/marketplace/providers/databases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
API key with "bl_" prefix (e.g. "bl_<api_key>")
Body
application/json
Custom database pricing request
Minimum array length:
1Show child attributes
Show child attributes
Was this page helpful?
⌘I
Register custom database pricing
curl --request POST \
--url https://pricing.baselinehq.cloud/marketplace/providers/databases \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}
'import requests
url = "https://pricing.baselinehq.cloud/marketplace/providers/databases"
payload = { "entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entries: [
{
architecture: '<string>',
availability_zone: '<string>',
billing_config: '<string>',
capacity_unit: '<string>',
cost_per_capacity_unit: 123,
cost_per_hour: 123,
cost_per_io_request: 123,
cost_per_iops_hour: 123,
cost_per_storage_gb_hour: 123,
cost_per_throughput_mbps_hour: 123,
cost_per_vcpu_license_hour: 123,
cpu_cores: 123,
cpu_cores_cost_per_hour: 123,
created_at: '<string>',
currency: '<string>',
deployment_option: '<string>',
edition: '<string>',
engine: '<string>',
id: '<string>',
instance_type: '<string>',
max_iops: 123,
max_storage_gb: 123,
max_throughput_mbps: 123,
min_iops: 123,
min_storage_gb: 123,
min_throughput_mbps: 123,
native_cost_per_hour: 123,
native_cost_per_storage_gb_hour: 123,
period_billing_hours: 123,
provider: '<string>',
ram_gb: 123,
ram_gb_cost_per_hour: 123,
raw_pricing_data: {},
region: '<string>',
service: '<string>',
storage_type: '<string>',
tags: {},
updated_at: '<string>',
usage_type: '<string>'
}
]
})
};
fetch('https://pricing.baselinehq.cloud/marketplace/providers/databases', 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://pricing.baselinehq.cloud/marketplace/providers/databases",
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([
'entries' => [
[
'architecture' => '<string>',
'availability_zone' => '<string>',
'billing_config' => '<string>',
'capacity_unit' => '<string>',
'cost_per_capacity_unit' => 123,
'cost_per_hour' => 123,
'cost_per_io_request' => 123,
'cost_per_iops_hour' => 123,
'cost_per_storage_gb_hour' => 123,
'cost_per_throughput_mbps_hour' => 123,
'cost_per_vcpu_license_hour' => 123,
'cpu_cores' => 123,
'cpu_cores_cost_per_hour' => 123,
'created_at' => '<string>',
'currency' => '<string>',
'deployment_option' => '<string>',
'edition' => '<string>',
'engine' => '<string>',
'id' => '<string>',
'instance_type' => '<string>',
'max_iops' => 123,
'max_storage_gb' => 123,
'max_throughput_mbps' => 123,
'min_iops' => 123,
'min_storage_gb' => 123,
'min_throughput_mbps' => 123,
'native_cost_per_hour' => 123,
'native_cost_per_storage_gb_hour' => 123,
'period_billing_hours' => 123,
'provider' => '<string>',
'ram_gb' => 123,
'ram_gb_cost_per_hour' => 123,
'raw_pricing_data' => [
],
'region' => '<string>',
'service' => '<string>',
'storage_type' => '<string>',
'tags' => [
],
'updated_at' => '<string>',
'usage_type' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://pricing.baselinehq.cloud/marketplace/providers/databases"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://pricing.baselinehq.cloud/marketplace/providers/databases")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pricing.baselinehq.cloud/marketplace/providers/databases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"architecture\": \"<string>\",\n \"availability_zone\": \"<string>\",\n \"billing_config\": \"<string>\",\n \"capacity_unit\": \"<string>\",\n \"cost_per_capacity_unit\": 123,\n \"cost_per_hour\": 123,\n \"cost_per_io_request\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_storage_gb_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"cost_per_vcpu_license_hour\": 123,\n \"cpu_cores\": 123,\n \"cpu_cores_cost_per_hour\": 123,\n \"created_at\": \"<string>\",\n \"currency\": \"<string>\",\n \"deployment_option\": \"<string>\",\n \"edition\": \"<string>\",\n \"engine\": \"<string>\",\n \"id\": \"<string>\",\n \"instance_type\": \"<string>\",\n \"max_iops\": 123,\n \"max_storage_gb\": 123,\n \"max_throughput_mbps\": 123,\n \"min_iops\": 123,\n \"min_storage_gb\": 123,\n \"min_throughput_mbps\": 123,\n \"native_cost_per_hour\": 123,\n \"native_cost_per_storage_gb_hour\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"ram_gb\": 123,\n \"ram_gb_cost_per_hour\": 123,\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"storage_type\": \"<string>\",\n \"tags\": {},\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"architecture": "<string>",
"availability_zone": "<string>",
"billing_config": "<string>",
"capacity_unit": "<string>",
"cost_per_capacity_unit": 123,
"cost_per_hour": 123,
"cost_per_io_request": 123,
"cost_per_iops_hour": 123,
"cost_per_storage_gb_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"cost_per_vcpu_license_hour": 123,
"cpu_cores": 123,
"cpu_cores_cost_per_hour": 123,
"created_at": "<string>",
"currency": "<string>",
"deployment_option": "<string>",
"edition": "<string>",
"engine": "<string>",
"id": "<string>",
"instance_type": "<string>",
"max_iops": 123,
"max_storage_gb": 123,
"max_throughput_mbps": 123,
"min_iops": 123,
"min_storage_gb": 123,
"min_throughput_mbps": 123,
"native_cost_per_hour": 123,
"native_cost_per_storage_gb_hour": 123,
"period_billing_hours": 123,
"provider": "<string>",
"ram_gb": 123,
"ram_gb_cost_per_hour": 123,
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"storage_type": "<string>",
"tags": {},
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}