databases

POST /v1/databases/{databaseId}/credentials

Reveal the database password.

Tutti gli endpoint databases

Autenticazione

Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

curl -X POST https://api.zinndigital.com/v1/databases/{databaseId}/credentials \
  -H "Authorization: Bearer zdk_live_…"

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

Gated on `databases.credentials.reveal` — its own permission, held by no read-only role, because this is the one call that moves a secret opening every row the customer has. Every call is audit-logged. ⛔ **A POST rather than a GET on purpose.** A GET would put the credential in browser history, proxy logs and `Referer` headers.

Parametri

NomeTipoObbligatorioChe cos'è
databaseId (path)string

Risposta

NomeTipoObbligatorioChe cos'è
usernamestring
passwordstring
hoststring
portinteger
database_namestring
enginestring<postgres, mysql>
dsnstringA ready-to-use connection string **for this database's engine** — `postgresql://…?sslmode=verify-full` or `mysql://…?ssl-mode=VERIFY_IDENTITY`. Both spellings authenticate the s…

Errori che questo endpoint può restituire

401 · 403 · 404 · 422