Make a database and its owner on an external server; the password is shown once
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/remote-databasesMake a database and its owner on an external server; the password is shown once (ADR 0182)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required |
Request body
required
Content type: application/json
object
db_server_idstring requirednamestring requiredquota_mbinteger optionalHard on SQL Server (MAXSIZE), advisory elsewhere
Example
{
"db_server_id": "string",
"name": "string",
"quota_mb": 0
}Responses
201 Made
Content type: application/json
RemoteDatabase & object
idstring requiredtenant_idstring requireddb_server_idstring requirednamestring requiredenginestring requiredquota_mbinteger requiredsize_bytesinteger requiredstatestring requirederrorstring requiredcreated_atstring (date-time) requiredmeasured_atstring (date-time) | null requiredhoststring requiredportinteger requiredserver_namestring requiredlevelstring requiredAllowed values:"remote_managed"backupsstring requiredThe panel takes no backups on an external server
Allowed values:"provider"quotastring requiredAllowed values:"hard""advisory"
passwordstring required
Example
{
"id": "string",
"tenant_id": "string",
"db_server_id": "string",
"name": "string",
"engine": "string",
"quota_mb": 0,
"size_bytes": 0,
"state": "string",
"error": "string",
"created_at": "2026-01-01T00:00:00Z",
"measured_at": "2026-01-01T00:00:00Z",
"host": "string",
"port": 0,
"server_name": "string",
"managed": {
"level": "remote_managed",
"backups": "provider",
"quota": "hard"
},
"password": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required