hosting
GET /v1/sites/{siteId}/databases
List a site's databases.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу sites.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/databases \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The MySQL databases on the site's hosting package, with the user bound to each so a connection string can be assembled. No password is returned: a database password exists in exactly one response on this platform, the one that created it, and there is no endpoint that reads one back. limit is the effective ceiling — the lower of what the package permits and what the customer bought. permitted and can_create answer the two different questions a screen must distinguish before it offers an "add" button. This is the customer's own control surface. It is deliberately not a link to any vendor database tool: no customer is ever sent to a vendor control panel (docs/62 §3.7). 404 for a site with no vendor hosting package. Requires sites.view.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | SiteHostingDatabase[] | Да | The databases on the package. |
limit | VendorAllowance | Да | The effective ceiling on databases for this site. |
permitted | boolean | Да | Whether the package type includes databases at all. |
can_create | boolean | Да | permitted, and the effective ceiling has room. |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429 · 503