compute
GET /v1/compute/servers/{serverId}/limits
What a server may hold.
Autentifikacija
Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu sites.view; ključ bez nje se odbija s kodom 403, a ne 404.
Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/limits \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli
Pojedinosti
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.
Parametri
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
serverId (path) | Uuid | Da | 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. |
Odgovor
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
packages | integer | Da | How many hosting packages (websites) may live on the machine. null not stated, -1 unlimited, otherwise the count. |
Pogreške koje ova krajnja točka može vratiti
401 · 403 · 404 · 422 · 429 · 503