compute

GET /v1/compute/catalogue

Get everything the server order screen is built from.

Усі кінцеві точки compute

Уся документація для розробників

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл sites.view; ключ без нього відхиляється з кодом 403, а не 404.

Де вказується ідентифікатор вашої організації

Цей ендпоїнт приймає org_id як параметр запиту. Залиште його порожнім, і виклик охопить увесь ваше дерево орендарів; надішліть його, щоб звузити виклик до однієї організації.

Ідентифікатор вашої організації знаходиться на екрані API-ключів у вашій панелі керування, поруч із самим ключем. Це той самий ідентифікатор у кожному вашому запиті.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X GET https://api.zinndigital.com/v1/compute/catalogue \
  -H "Authorization: Bearer zdk_live_…"

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

The live provider / data-centre / machine-size matrix, merged with the tiers we actually sell. Nothing about a provider, a zone, a size or a stack optimisation is authored in a client: a combination a client invented is one the provider refuses inside provisioning, minutes after the customer chose it, where all they see is a machine that failed. ⛔ Sizes carry no price, ever. Retail price is catalogue data the customer sees on the plan; the provider's own figure is cost, and a cost rendered beside a size is a margin leak. Every numeric on a size is nullable and a null stays null — a size rendered as "0 GB RAM" reads as a broken product where a blank reads as "not stated", which is what it is. spec_source says whether the sizes came from the provider or, when it published none, from our own sold tiers — in which case a size id is a plan code and the two collapse at order time. can_order is what lets a screen say "this cannot be ordered yet" instead of rendering a button that 422s. ?target= selects the range (Zinn® Cloud by default); a target that is not a compute product is 404, never a 403. ?org_id= is required only of a caller who belongs to more than one organisation, and is 422 when omitted by one who does — picking "the first org in scope" would configure against an arbitrary tenant. Requires sites.view.

Параметри

НазваТипОбов'язковеЩо це таке
target (query)stringНіWhich compute range to describe. Defaults to Zinn® Cloud, the branded product; the VPS range is the same seam with a different target.
org_id (query)UuidНіThe organisation to configure against. Required only when the caller belongs to more than one; omitted, it is their own.

Відповідь

НазваТипОбов'язковеЩо це таке
dataComputeProvider[]ТакThe platforms a machine can be placed on.
tiersComputeTier[]ТакThe tiers we sell on this range.
can_orderbooleanТакWhether anything here can actually be ordered — any orderable tier, or any provider size. It exists so a screen can say "this cannot be ordered yet" instead of rendering a…
available_targetsDeployTarget[]НіThe compute ranges that have a provider account behind them — derived from the platform's provider-account pool, never listed by hand. An order screen offers only these. A range…

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422 · 429 · 503