compute

GET /v1/compute/servers/{serverId}/packages

List the websites hosted on a server.

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

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

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

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

Спробувати

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

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

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

Деталі

The websites living on this machine, together with the kinds of package this account may create. The types travel with the list because the only screen that needs them is the one that has just rendered it, and a second round trip on opening a form is a round trip on a button press. Package type ids are specific to the provider account the machine sits on and must never be hard-coded. 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.

Відповідь

НазваТипОбов'язковеЩо це таке
dataComputeHostingPackage[]Так
typesComputePackageType[]ТакThe package types this machine's account may create.

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

401 · 403 · 404 · 422 · 429 · 503