compute

GET /v1/compute/vps/quote

What one configured VPS costs, itemised.

Tutti gli endpoint compute

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione sites.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X GET https://api.zinndigital.com/v1/compute/vps/quote?size=<size> \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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

NomeTipoObbligatorioChe cos'è
size (query)stringThe vendor's machine token (`vps-a` … `vps-i`).
interval (query)string<monthly, yearly>No
image (query)stringNoThe operating-system token. Only Windows carries a price.
cpanel (query)stringNoA cPanel licence (`cpaneladmin`, `cpanelpro`, `cpanelplus`, `cpanelpremier`).
backup (query)booleanNo
disk_gb (query)integerNoAn additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds.

Risposta

NomeTipoObbligatorioChe cos'è
dataComputeVpsQuoteOne configured VPS, itemised. Every figure is integer minor units of `currency`; `total_minor` is the sum and is the number to show the customer.

Errori che questo endpoint può restituire

401 · 403 · 422 · 429