compute
GET /v1/compute/vps/quote
What one configured VPS costs, itemised.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/compute/vps/quote?size=<size> \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
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.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
size (query) | string | Да | The vendor's machine token (vps-a … vps-i). |
interval (query) | string<monthly, yearly> | Не | — |
image (query) | string | Не | The operating-system token. Only Windows carries a price. |
cpanel (query) | string | Не | A cPanel licence (cpaneladmin, cpanelpro, cpanelplus, cpanelpremier). |
backup (query) | boolean | Не | — |
disk_gb (query) | integer | Не | An additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | ComputeVpsQuote | Да | 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. |
Грешке које ова крајња тачка може вратити
401 · 403 · 422 · 429