List dedicated plans with live stock
curl --request GET \
--url https://my.server.express/api/v1/dedicated/plansconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/dedicated/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/plans"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"slug": "<string>",
"name": "<string>",
"location": "<string>",
"cpu": "<string>",
"cpuCores": 123,
"cpuThreads": 123,
"ramMb": 123,
"storage": "<string>",
"network": "<string>",
"priceMinor": 123,
"setupMinor": 123,
"currency": "EUR",
"billingCycle": "monthly",
"stock": 123,
"unitStock": 123,
"manualStock": 123,
"leadTime": "<string>",
"instant": true,
"units": [
{
"ref": "<string>",
"instant": true,
"cpu": "<string>",
"cpuCores": 123,
"cpuThreads": 123,
"ramMb": 123,
"diskMib": 123,
"datacenter": "<string>"
}
]
}
],
"stale": true
}{
"success": false,
"error": "<string>"
}Dedicated
List dedicated plans with live stock
The public dedicated catalogue: every active, listed plan ordered by sortOrder then price, with a live count of the
machines behind it. No hostnames, TenantOS ids or unit-level secrets are returned. Cached in memory for 30 seconds and
sent with Cache-Control: public, max-age=30. If the database read fails and a previous answer is cached, that answer
is served with stale: true instead of an error.
GET
/
v1
/
dedicated
/
plans
List dedicated plans with live stock
curl --request GET \
--url https://my.server.express/api/v1/dedicated/plansconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/dedicated/plans', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/plans"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"slug": "<string>",
"name": "<string>",
"location": "<string>",
"cpu": "<string>",
"cpuCores": 123,
"cpuThreads": 123,
"ramMb": 123,
"storage": "<string>",
"network": "<string>",
"priceMinor": 123,
"setupMinor": 123,
"currency": "EUR",
"billingCycle": "monthly",
"stock": 123,
"unitStock": 123,
"manualStock": 123,
"leadTime": "<string>",
"instant": true,
"units": [
{
"ref": "<string>",
"instant": true,
"cpu": "<string>",
"cpuCores": 123,
"cpuThreads": 123,
"ramMb": 123,
"diskMib": 123,
"datacenter": "<string>"
}
]
}
],
"stale": true
}{
"success": false,
"error": "<string>"
}