Get a database
Returns a database's engine, node, internal address, exposure and web UI state, without passwords.
Needs services.view on the service (a grant on its project covers it). Available to MCP clients and the assistant.
seylo_session<token>serviceId*stringPanel-issued id.
^[a-z0-9]{16}$Success.
application/json- response
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$projectId*stringPanel-issued id.
^[a-z0-9]{16}$name*stringDNS-safe; the service's host name on the project network. Unique in its project.
^[a-z0-9]([a-z0-9-]*[a-z0-9])?$1 <= length <= 40engine*string|string|string|string|stringversion*stringnodeId*stringPanel-issued id.
^[a-z0-9]{16}$nodeName*stringinternal*exposure*webUi*createdAt*stringdate-timecurl -X GET 'https://example.com/api/v1/databases.get?serviceId=string'{ "serviceId": "string", "projectId": "string", "name": "string", "engine": "postgres", "version": "string", "nodeId": "string", "nodeName": "string", "internal": { "host": "string", "port": 1, "database": "string", "user": "string" }, "exposure": { "enabled": true, "host": "string", "port": 1024, "user": "string", "allowedCidrs": [ "string" ], "tlsHostname": "string", "certificate": "none", "certificateIssuer": "string", "certificateExpiresAt": "2019-08-24T14:15:22Z" }, "webUi": { "tool": "string", "idleMinutes": 1, "running": true, "lastActiveAt": "2019-08-24T14:15:22Z" }, "createdAt": "2019-08-24T14:15:22Z"}Create a database POST
Creates a Postgres, MySQL, MariaDB, Mongo or Redis service in a project on one node, with generated credentials (or the ones given) and a data volume. Other services on the same node reach it at <name>:<port>; services on other nodes need exposure. Needs `services.create` on the project. Available to MCP clients and the assistant.
Open a database shell POST
Returns a ticket for a terminal already signed in to the database (psql, mysql, mongosh, redis-cli). The web app passes it to the terminal socket; it works once and expires in a minute. Needs `databases.tools` on the service (a grant on its project covers it). Not available to MCP clients or the assistant.