Marketplace
Register a custom disk provider
Register a custom disk provider
POST
/
marketplace
/
providers
/
disks
Register a custom disk provider
curl --request POST \
--url https://pricing.baselinehq.cloud/marketplace/providers/disks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}
'import requests
url = "https://pricing.baselinehq.cloud/marketplace/providers/disks"
payload = { "entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"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: [
{
availability_zone: '<string>',
cost_per_gb_hour: 123,
cost_per_iops_hour: 123,
cost_per_throughput_mbps_hour: 123,
created_at: '<string>',
id: '<string>',
max_capacity_gb: 123,
max_iops: 123,
max_throughput_mbps: 123,
min_capacity_gb: 123,
min_iops: 123,
min_throughput_mbps: 123,
period_billing_hours: 123,
provider: '<string>',
raw_pricing_data: {},
region: '<string>',
service: '<string>',
tags: {},
type: '<string>',
updated_at: '<string>',
usage_type: '<string>'
}
]
})
};
fetch('https://pricing.baselinehq.cloud/marketplace/providers/disks', 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/disks",
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' => [
[
'availability_zone' => '<string>',
'cost_per_gb_hour' => 123,
'cost_per_iops_hour' => 123,
'cost_per_throughput_mbps_hour' => 123,
'created_at' => '<string>',
'id' => '<string>',
'max_capacity_gb' => 123,
'max_iops' => 123,
'max_throughput_mbps' => 123,
'min_capacity_gb' => 123,
'min_iops' => 123,
'min_throughput_mbps' => 123,
'period_billing_hours' => 123,
'provider' => '<string>',
'raw_pricing_data' => [
],
'region' => '<string>',
'service' => '<string>',
'tags' => [
],
'type' => '<string>',
'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/disks"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\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/disks")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\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/disks")
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 \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"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 disk pricing request
Minimum array length:
1Show child attributes
Show child attributes
Was this page helpful?
⌘I
Register a custom disk provider
curl --request POST \
--url https://pricing.baselinehq.cloud/marketplace/providers/disks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}
'import requests
url = "https://pricing.baselinehq.cloud/marketplace/providers/disks"
payload = { "entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"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: [
{
availability_zone: '<string>',
cost_per_gb_hour: 123,
cost_per_iops_hour: 123,
cost_per_throughput_mbps_hour: 123,
created_at: '<string>',
id: '<string>',
max_capacity_gb: 123,
max_iops: 123,
max_throughput_mbps: 123,
min_capacity_gb: 123,
min_iops: 123,
min_throughput_mbps: 123,
period_billing_hours: 123,
provider: '<string>',
raw_pricing_data: {},
region: '<string>',
service: '<string>',
tags: {},
type: '<string>',
updated_at: '<string>',
usage_type: '<string>'
}
]
})
};
fetch('https://pricing.baselinehq.cloud/marketplace/providers/disks', 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/disks",
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' => [
[
'availability_zone' => '<string>',
'cost_per_gb_hour' => 123,
'cost_per_iops_hour' => 123,
'cost_per_throughput_mbps_hour' => 123,
'created_at' => '<string>',
'id' => '<string>',
'max_capacity_gb' => 123,
'max_iops' => 123,
'max_throughput_mbps' => 123,
'min_capacity_gb' => 123,
'min_iops' => 123,
'min_throughput_mbps' => 123,
'period_billing_hours' => 123,
'provider' => '<string>',
'raw_pricing_data' => [
],
'region' => '<string>',
'service' => '<string>',
'tags' => [
],
'type' => '<string>',
'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/disks"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\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/disks")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\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/disks")
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 \"availability_zone\": \"<string>\",\n \"cost_per_gb_hour\": 123,\n \"cost_per_iops_hour\": 123,\n \"cost_per_throughput_mbps_hour\": 123,\n \"created_at\": \"<string>\",\n \"id\": \"<string>\",\n \"max_capacity_gb\": 123,\n \"max_iops\": 123,\n \"max_throughput_mbps\": 123,\n \"min_capacity_gb\": 123,\n \"min_iops\": 123,\n \"min_throughput_mbps\": 123,\n \"period_billing_hours\": 123,\n \"provider\": \"<string>\",\n \"raw_pricing_data\": {},\n \"region\": \"<string>\",\n \"service\": \"<string>\",\n \"tags\": {},\n \"type\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"usage_type\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"availability_zone": "<string>",
"cost_per_gb_hour": 123,
"cost_per_iops_hour": 123,
"cost_per_throughput_mbps_hour": 123,
"created_at": "<string>",
"id": "<string>",
"max_capacity_gb": 123,
"max_iops": 123,
"max_throughput_mbps": 123,
"min_capacity_gb": 123,
"min_iops": 123,
"min_throughput_mbps": 123,
"period_billing_hours": 123,
"provider": "<string>",
"raw_pricing_data": {},
"region": "<string>",
"service": "<string>",
"tags": {},
"type": "<string>",
"updated_at": "<string>",
"usage_type": "<string>"
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}