Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.

Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/databases \
  -H "Authorization: Bearer zdk_live_…"

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в 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).

Отговор

ИмеТипЗадължителноКакво представлява
dataSiteHostingDatabase[]ДаThe databases on the package.
limitVendorAllowanceДаThe effective ceiling on databases for this site.
permittedbooleanДаWhether the package type includes databases at all.
can_createbooleanДаpermitted, and the effective ceiling has room.

Грешки, които този крайpoint може да върне

401 · 403 · 404 · 429 · 503