compute

GET /v1/compute/vps/quote

What one configured VPS costs, itemised.

Всички крайни точки в compute

Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.

Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

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

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в 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.

Отговор

ИмеТипЗадължителноКакво представлява
dataComputeVpsQuoteДа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.

Грешки, които този крайpoint може да върне

401 · 403 · 422 · 429