compute

GET /v1/compute/servers/{serverId}/backups/tier

The machine's backup tier, and what upgrading would cost.

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

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

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

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

Спробувати

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

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/backups/tier \
  -H "Authorization: Bearer zdk_live_…"

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

Деталі

A **pure read** — it charges nothing. `amount_minor` is our price for moving this machine to extended backups, derived from the provider's own live quote for **this** machine rather than from a published percentage: the two disagree, and the provider's figure is the one we are charged. ⛔ `upgrade_available: false` with a `reason` when the machine is already on the extended tier, is still building, or is on a range that has no tier concept — the VPS range buys backups as a separate contract instead, from `getComputeServerPlan`. Requires `sites.view`.

Параметри

НазваТипОбов'язковеЩо це таке
serverId (path)UuidТакThe server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.

Відповідь

НазваТипОбов'язковеЩо це таке
dataComputeBackupTierТакA machine's backup tier and the price of moving it. ⛔ `tier` is the provider's own word, verbatim (`normal` / `upgraded`), because rounding it to a boolean loses the difference…

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

401 · 403 · 404 · 429