Live stock counts by model and location
curl --request GET \
--url https://my.server.express/api/v1/dedicated/stockconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/dedicated/stock', 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/stock"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"model": "XEON2-64",
"location": "arn",
"count": 123
}
],
"stale": true
}{
"success": false,
"error": "<string>"
}Dedicated
Live stock counts by model and location
Legacy stock counts for the marketing site’s static catalogue fallback, aggregated from the TenantOS marketplace.
Units are grouped by (model, location) parsed from the stock hostname convention <loc><n>-<model>-<seq>
(e.g. arn1-xeon2-64-03 → model XEON2-64, location arn); hostnames that don’t match are skipped. Counts only —
no ids, hostnames or prices. Cached in memory for 60 seconds with Cache-Control: public, max-age=60; on a TenantOS
failure the last good answer is served with stale: true.
GET
/
v1
/
dedicated
/
stock
Live stock counts by model and location
curl --request GET \
--url https://my.server.express/api/v1/dedicated/stockconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/dedicated/stock', 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/stock"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"model": "XEON2-64",
"location": "arn",
"count": 123
}
],
"stale": true
}{
"success": false,
"error": "<string>"
}