compute
GET /v1/compute/vps/quote
What one configured VPS costs, itemised.
Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea sites.view; o cheie care nu o are va fi respinsă cu 403, nu 404.
Acest endpoint nu necesită un ID de organizație. Cheia ta identifică deja organizația căreia îi aparține, iar răspunsul este limitat la aceasta.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
curl -X GET https://api.zinndigital.com/v1/compute/vps/quote?size=<size> \
-H "Authorization: Bearer zdk_live_…"Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
A **pure read** - it opens no transport, writes nothing and charges nothing. The order screen calls it on every change so the customer sees the real total before committing, rather than a machine price that grows at checkout once the options are applied. ⛔ The machine's own figure comes from its **plan**, never from the add-on catalogue. Two sources for one price is how a configurator and a checkout come to disagree. Requires `sites.view`.
Parametri
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
size (query) | string | Da | The vendor's machine token (`vps-a` … `vps-i`). |
interval (query) | string<monthly, yearly> | Nu | — |
image (query) | string | Nu | The operating-system token. Only Windows carries a price. |
cpanel (query) | string | Nu | A cPanel licence (`cpaneladmin`, `cpanelpro`, `cpanelplus`, `cpanelpremier`). |
backup (query) | boolean | Nu | — |
disk_gb (query) | integer | Nu | An additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds. |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
data | ComputeVpsQuote | Da | One configured VPS, itemised. Every figure is integer minor units of `currency`; `total_minor` is the sum and is the number to show the customer. |
Erori pe care le poate returna acest punct final
401 · 403 · 422 · 429