hosting

GET /v1/sites/{siteId}/databases

List a site's databases.

Všechny koncové body hosting

Všechny dokumenty pro vývojáře

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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.

Parametry

NázevTypPožadovánoCo to je
siteId (path)UuidAnoSite ID (UUIDv7).

Odpověď

NázevTypPožadovánoCo to je
dataSiteHostingDatabase[]AnoThe databases on the package.
limitVendorAllowanceAnoThe effective ceiling on databases for this site.
permittedbooleanAnoWhether the package type includes databases at all.
can_createbooleanAnopermitted, and the effective ceiling has room.

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 429 · 503