compute
GET /v1/compute/servers/{serverId}/plan
What this machine costs, and what else it could have.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/plan \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Everything the "change what I am paying for" card renders: the paid options already on the machine, the ones it could still take, and whether its size can change at all. ⛔⛔ Read resizable and addons_removable before rendering any control. They are different answers on the two ranges and both are vendor facts, not preferences. A cloud server resizes in place and its extended-backup tier can be cancelled; a VPS can do neither - this platform publishes no operation that changes a VPS's processor or memory, and no way to remove one of its add-ons. resize_reason and addons_removal_reason carry the sentence to show instead of the control. 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. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | ComputeServerPlan | Да | What a machine costs today, what else it could carry, and what may change. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429