Managed Databases
Get connection details
Changed onConnection details for the database: username, database name, and two endpoints.
- Private (host, port, connection_uri): reachable from inside the database's VPC. For PostgreSQL, port is the direct port 5432; the pooler is on 6432 of the same host. Use these only when the database has a vpc_id; without a VPC there is no private endpoint you can reach.
- Public (public_host, public_port, public_connection_uri): filled while public access is on.
The password field is empty unless you pass reveal=true. TLS is always required: ca_cert is the database's certificate authority, for clients that verify the server certificate (the public hostname is in the certificate).
get/api/v1/databases/{database_id}/connection
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/databases/{database_id}/connection
- AuthAPI key in header X-API-Key
Path parameters
database_idstring required
Database ID (UUID) or short id (the database_id field, e.g. a1b2c3d4)
Query parameters
revealboolean
Set to true to include the password in the response and connection URI
Response
Connection details
Example response
{
"host": "a1b2c3d4.db.raffusercloud.com",
"port": 5432,
"public_host": "a1b2c3d4.public.db.raffusercloud.com",
"public_port": 5432
}Changes
- info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status
- info
- info
endpoint added
- info