compute
GET /v1/compute/servers/{serverId}/limits
What a server may hold.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/limits \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The machine's ceilings — today, how many websites it may host. Read live from the provider, because it is the provider's fact about the contract and a cached ceiling is wrong exactly when a plan changes. ⛔ The answer can be "unlimited", and a client must be able to say so. The field is three-state: null the provider did not say, -1 unlimited, >= 0 a count. On the resold range this genuinely is unlimited, which is why adding a website to a machine the customer already owns costs nothing — a claim the platform previously made in a code comment and could not put on a screen. 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. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
packages | integer | Да | How many hosting packages (websites) may live on the machine. null not stated, -1 unlimited, otherwise the count. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429 · 503