compute
GET /v1/compute/vps/quote
What one configured VPS costs, itemised.
Autenticação
Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X GET https://api.zinndigital.com/v1/compute/vps/quote?size=<size> \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
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`.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
size (query) | string | Sim | The vendor's machine token (`vps-a` … `vps-i`). |
interval (query) | string<monthly, yearly> | Não | — |
image (query) | string | Não | The operating-system token. Only Windows carries a price. |
cpanel (query) | string | Não | A cPanel licence (`cpaneladmin`, `cpanelpro`, `cpanelplus`, `cpanelpremier`). |
backup (query) | boolean | Não | — |
disk_gb (query) | integer | Não | An additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds. |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
data | ComputeVpsQuote | Sim | 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. |
Erros que este endpoint pode retornar
401 · 403 · 422 · 429