How to reach the database over TLS from outside
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
GET
/api/v1/tenants/{tid}/databases/{id}/tlsHow to reach the database over TLS from outside (ADR 0181)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required |
Responses
200 TLS details
Content type: application/json
availableboolean requiredThe database's engine serves the certificate
requiredboolean requiredRemote connections must use TLS
hostsarray<string> requiredca_pemstring requiredCA to verify against; empty for a public CA
public_caboolean required
Example
{
"available": true,
"required": true,
"hosts": [
"string"
],
"ca_pem": "string",
"public_ca": true
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required