Connections endpoints
Create, test, open and remove the database connections the IDE and DB DevOps use. Paths are relative to the address of your Simcha DB Studio server.
Through the MCP server these endpoints are the Connections tool group, off until an admin turns it on.
While this group is on, the MCP server also offers the lookups its tools need: environments_list (List environments, from Environments and Groupings), groupings_list (List groupings, from Environments and Groupings).
| Method | Path | What it does |
|---|---|---|
| GET | /api/connections | List connections |
| GET | /api/connections/demos-visibility | Show whether demo connections are hidden |
| POST | /api/connections/demos-visibility | Hide or show demo connections |
| GET | /api/connections/importable | List DB DevOps connections to copy into the IDE |
| GET | /api/connections/active | List the caller's open connections |
| POST | /api/connections/bulk | Create many connections at once |
| GET | /api/connections/:id | Get a connection |
| POST | /api/connections/test | Test connection settings |
| POST | /api/connections | Create a connection |
| POST | /api/connections/import | Copy DB DevOps connections into the IDE |
| PUT | /api/connections/:id | Change a connection |
| POST | /api/connections/:id/connect | Open a connection |
| POST | /api/connections/:id/disconnect | Close a connection |
| POST | /api/connections/disconnect-all | Close all of the caller's connections |
| DELETE | /api/connections/:id | Delete a connection |
| GET | /api/db-devops/connections | List DB DevOps connections |
| GET | /api/db-devops/connections/importable | List IDE connections to copy into DB DevOps |
| POST | /api/db-devops/connections/import | Copy IDE connections into DB DevOps |
| GET | /api/db-devops/connections/:id | Get a DB DevOps connection |
| GET | /api/db-devops/connections/environment/:env | List the DB DevOps connections in an environment |
| GET | /api/db-devops/connections/grouping/:grouping | List the DB DevOps connections in a grouping |
| POST | /api/db-devops/connections | Create a DB DevOps connection |
| PUT | /api/db-devops/connections/:id | Change a DB DevOps connection |
| DELETE | /api/db-devops/connections/:id | Delete a DB DevOps connection |
| GET | /api/db-devops/connections/:id/databases | List the databases on a connection's server |
| GET | /api/db-devops/connections/:id/schemas | List the schemas of a database |
| POST | /api/db-devops/connections/:id/test | Test a DB DevOps connection |
GET /api/connections
Lists the caller's IDE connections, or the DB DevOps connections with surface=devops, sorted by name, with their settings and whether each is open. Passwords and SSH secrets come back as ******. Shared demo connections are left out when the caller has hidden them.
Reads only · Role: Any signed-in user · MCP tool: connections_list
| Input | Type | Description |
|---|---|---|
surface (query) | one of ide, devops, optional | Which connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections) |
GET /api/connections/demos-visibility
Returns hidden (whether the caller has hidden the shared demo connections) and hasDemos (whether any shared demo connections exist).
Reads only · Role: Any signed-in user · MCP tool: connections_demo_visibility
No inputs.
POST /api/connections/demos-visibility
Saves, for the caller only, whether the shared demo connections are left out of their connection list. Returns the saved value.
Changes data · Role: Any signed-in user · MCP tool: connections_hide_demos
| Input | Type | Description |
|---|---|---|
hidden (body) | boolean, optional | True hides the demo connections, false shows them |
GET /api/connections/importable
Lists the DB DevOps connections the caller does not already have as IDE connections (same engine, host, port and database). Passwords come back as ******. Copy them with connections_import.
Reads only · Role: Any signed-in user · MCP tool: connections_list_importable
No inputs.
GET /api/connections/active
Returns activeIds: the IDs of the connections the caller has opened with connections_connect and not yet closed.
Reads only · Role: Any signed-in user · MCP tool: connections_list_open
No inputs.
POST /api/connections/bulk
Creates up to 500 connections without testing them; a row with a missing name or type, an unknown engine, invalid settings, a name already in use, an environment (connections no longer have one) or groupings that would mix database types or put the database in two environments is reported in failed with its row number while the other rows are still created. Returns created and failed with their counts, with status 201 when any row was created and 400 otherwise. With surface=devops the caller needs the release manager role and, unless an admin, the Configuration section in one of their roles.
Changes data · Role: Any signed-in user · MCP tool: connections_bulk_create
| Input | Type | Description |
|---|---|---|
surface (query) | one of ide, devops, optional | Which connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections) |
connections (body) | list of object, required | The connections to create, 1 to 500 |
connections[].name (body) | string, required | The connection name, unique among connections of the same kind (case does not matter) |
connections[].type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, required | The database engine |
connections[].config (body) | object, optional | The connection settings. Without it, the other fields of the row are used. port may be text, ssl may be "true", "1" or "yes", and groupings may be one text separated by ; or | |
connections[].config.host (body) | string, optional | The server host name or IP address. Required by most engines |
connections[].config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
connections[].config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
connections[].config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
connections[].config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
connections[].config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
connections[].config.ssl (body) | boolean, optional | Use SSL/TLS |
connections[].config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
connections[].config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
connections[].config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
connections[].config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
connections[].config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
connections[].config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
connections[].config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
connections[].config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
connections[].config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
connections[].config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
connections[].config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
connections[].config.schema (body) | string, optional | Snowflake: the schema queries start in |
connections[].config.role (body) | string, optional | Snowflake: the role the session uses |
connections[].config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
connections[].config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
connections[].config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
connections[].config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
connections[].config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
connections[].config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
connections[].config.sshHost (body) | string, optional | The SSH bastion host |
connections[].config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
connections[].config.sshUsername (body) | string, optional | The SSH user name |
connections[].config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
connections[].config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
connections[].config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
connections[].config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
connections[].config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
GET /api/connections/:id
Returns one connection with its settings and whether it is open. Passwords and SSH secrets come back as ******. Another user's private IDE connection is not found.
Reads only · Role: Any signed-in user · MCP tool: connections_get
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
POST /api/connections/test
Checks the settings and tries to connect with them, without saving anything. Returns success and a message; missing or invalid settings are refused with 400 and the reasons.
Reads only · Role: Any signed-in user · MCP tool: connections_test_settings
| Input | Type | Description |
|---|---|---|
type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, required | The database engine |
config (body) | object, required | The connection settings to test |
config.host (body) | string, optional | The server host name or IP address. Required by most engines |
config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
config.ssl (body) | boolean, optional | Use SSL/TLS |
config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
config.schema (body) | string, optional | Snowflake: the schema queries start in |
config.role (body) | string, optional | Snowflake: the role the session uses |
config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
config.sshHost (body) | string, optional | The SSH bastion host |
config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
config.sshUsername (body) | string, optional | The SSH user name |
config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
POST /api/connections
Checks the settings, tests the connection and saves it with the password and SSH secrets encrypted; a failed test is refused with 400 and the reason. With surface=devops it creates a DB DevOps connection, which needs the release manager role and, unless the caller is an admin, the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.
Changes data · Role: Any signed-in user · MCP tool: connections_create
| Input | Type | Description |
|---|---|---|
surface (query) | one of ide, devops, optional | Which connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections) |
name (body) | string, required | The connection name |
type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, required | The database engine |
config (body) | object, required | The connection settings. Other keys are kept as given |
config.host (body) | string, optional | The server host name or IP address. Required by most engines |
config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
config.ssl (body) | boolean, optional | Use SSL/TLS |
config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
config.schema (body) | string, optional | Snowflake: the schema queries start in |
config.role (body) | string, optional | Snowflake: the role the session uses |
config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
config.sshHost (body) | string, optional | The SSH bastion host |
config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
config.sshUsername (body) | string, optional | The SSH user name |
config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
POST /api/connections/import
Copies DB DevOps connections, with their stored passwords, into the caller's IDE connections. A connection the caller already has (same engine, host, port and database) is skipped; an ID that is not a DB DevOps connection is ignored. Returns how many were imported and skipped.
Changes data · Role: Any signed-in user · MCP tool: connections_import
| Input | Type | Description |
|---|---|---|
ids (body) | list of string (uuid), required | The DB DevOps connections to copy |
PUT /api/connections/:id
Changes the name and settings; the engine cannot change, shared demo connections cannot be edited, and a DB DevOps connection needs the release manager role and, unless the caller is an admin, the Configuration section. New settings are tested after saving, and a failed test keeps the change and returns testWarning. An open connection is closed so the next use picks up the change. Sending environment or groupings is refused with 400: the groupings of a connection change on the grouping.
Changes data · Role: Any signed-in user · MCP tool: connections_update
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
name (body) | string, optional | The new name. Left out, the name is kept |
type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, optional | The database engine. A different engine from the saved one is refused |
config (body) | object, optional | The new settings, which replace the stored ones. A password left out, empty or sent as ****** or ******** keeps the stored one, and the same holds for the SSH password, key and passphrase. Left out, the settings are kept |
config.host (body) | string, optional | The server host name or IP address. Required by most engines |
config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
config.ssl (body) | boolean, optional | Use SSL/TLS |
config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
config.schema (body) | string, optional | Snowflake: the schema queries start in |
config.role (body) | string, optional | Snowflake: the role the session uses |
config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
config.sshHost (body) | string, optional | The SSH bastion host |
config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
config.sshUsername (body) | string, optional | The SSH user name |
config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
POST /api/connections/:id/connect
Opens a live connection to the database, or joins one already open, and holds it for the caller. A connection that cannot be reached is refused with 502 and the driver's reason. For a DB DevOps connection a caller who is not an admin needs the Configuration section.
Changes data · Role: Any signed-in user · MCP tool: connections_connect
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
POST /api/connections/:id/disconnect
Releases the caller's hold on an open connection and closes it when nobody else holds it. For a DB DevOps connection a caller who is not an admin needs the Configuration section.
Changes data · Role: Any signed-in user · MCP tool: connections_disconnect
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
POST /api/connections/disconnect-all
Releases every connection the caller holds open, closing each one nobody else holds. Returns how many were released.
Changes data · Role: Any signed-in user · MCP tool: connections_disconnect_all
No inputs.
DELETE /api/connections/:id
Closes and deletes a connection. Shared demo connections cannot be deleted, and a connection a release pipeline uses is refused with 409. A DB DevOps connection needs the admin role.
Changes data and can remove or overwrite it · Role: Any signed-in user · MCP tool: connections_delete
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
GET /api/db-devops/connections
Lists the DB DevOps connections sorted by name, with engine, host, port and database, and placements: each grouping that holds the connection, the environment it is assigned to and which databases it holds. Stored passwords come back as ********.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_list
No inputs.
GET /api/db-devops/connections/importable
Lists the caller's own IDE connections that are not already DB DevOps connections (same engine, host, port and database). Stored passwords come back as ********. Copy them with connections_devops_import.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_list_importable
No inputs.
POST /api/db-devops/connections/import
Copies IDE connections into DB DevOps with their host, port, database, user, password and SSL setting; other settings such as SSH tunnels are not copied. A connection already in DB DevOps is skipped; an ID that is not an IDE connection the caller may use is ignored. Returns how many were imported and skipped.
Changes data · Role: Release manager or admin · MCP tool: connections_devops_import
| Input | Type | Description |
|---|---|---|
ids (body) | list of string (uuid), required | The IDE connections to copy |
GET /api/db-devops/connections/:id
Returns one connection with engine, host, port, database and placements (the groupings that hold it and their environments). The stored password comes back as ********.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_get
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
GET /api/db-devops/connections/environment/:env
Lists the DB DevOps connections that a grouping assigned to the environment holds, sorted by name, with their placements. Stored passwords come back as ********.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_by_environment
| Input | Type | Description |
|---|---|---|
env (path) | string, required | The environment name |
GET /api/db-devops/connections/grouping/:grouping
Lists the DB DevOps connections in one grouping, sorted by name, with their placements. Stored passwords come back as ********.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_by_grouping
| Input | Type | Description |
|---|---|---|
grouping (path) | string, required | The grouping name |
POST /api/db-devops/connections
Saves a DB DevOps connection without testing it. Only the fields below are stored, and the creator recorded in the connection and the audit log is always the signed-in caller. A caller who is not an admin also needs the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.
Changes data · Role: Release manager or admin · MCP tool: connections_devops_create
| Input | Type | Description |
|---|---|---|
name (body) | string, required | The connection name, up to 255 characters |
type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, required | The database engine |
host (body) | string, required | The server host name or IP address |
port (body) | integer, 1 to 65535, required | The server port |
database_name (body) | string, required | The database name |
username (body) | string, optional | The user name |
password_encrypted (body) | string, optional | The password in plain text. It is stored encrypted; reads show ******** |
ssl_enabled (body) | boolean, optional | Use SSL/TLS |
groupings (body) | list of string, optional | Groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config (body) | object, optional | Engine-specific settings and an SSH tunnel, as connections_create takes them (service name, account, SSL mode, SSH host and extra parameters). Secrets in it are stored encrypted and read back as ****** |
config.host (body) | string, optional | The server host name or IP address. Required by most engines |
config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
config.ssl (body) | boolean, optional | Use SSL/TLS |
config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
config.schema (body) | string, optional | Snowflake: the schema queries start in |
config.role (body) | string, optional | Snowflake: the role the session uses |
config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
config.sshHost (body) | string, optional | The SSH bastion host |
config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
config.sshUsername (body) | string, optional | The SSH user name |
config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
PUT /api/db-devops/connections/:id
Changes the fields sent; the engine cannot change and shared demo connections cannot be edited. A password_encrypted of ******** (as reads return it) or empty keeps the stored password, so the body of connections_devops_get can be sent back with one field changed. The audit log records the signed-in caller. A caller who is not an admin also needs the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.
Changes data · Role: Release manager or admin · MCP tool: connections_devops_update
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
name (body) | string, optional | The connection name, up to 255 characters |
type (body) | one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, optional | The database engine. A different engine from the saved one is refused |
host (body) | string, optional | The server host name or IP address |
port (body) | integer, 1 to 65535, optional | The server port |
database_name (body) | string, optional | The database name |
username (body) | string, optional | The user name |
password_encrypted (body) | string, optional | A new password in plain text, which replaces the stored one. Left out, empty or sent as ******** (the mask reads return) it keeps the stored password, so a connection read and sent back keeps signing in |
ssl_enabled (body) | boolean, optional | Use SSL/TLS |
config (body) | object, optional | Engine-specific settings and an SSH tunnel to change. Keys left out keep their stored values, and a secret sent as ****** or empty keeps the stored one |
config.host (body) | string, optional | The server host name or IP address. Required by most engines |
config.port (body) | integer, 1 to 65535, optional | The server port. Each engine has its own default |
config.database (body) | string or integer, optional | The database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one |
config.username (body) | string, optional | The user name. For DynamoDB the access key ID |
config.password (body) | string, optional | The password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ****** |
config.savePassword (body) | boolean, optional | Send false to keep the password out of storage |
config.ssl (body) | boolean, optional | Use SSL/TLS |
config.sslMode (body) | one of disable, require, verify-ca, verify-full, optional | The SSL mode, for engines that have one |
config.encrypt (body) | boolean, optional | SQL Server: encrypt the connection |
config.trustServerCertificate (body) | boolean, optional | SQL Server: accept any certificate the server presents, including a self-signed one |
config.connectionTimeoutSec (body) | integer, 1 or more, optional | How long to wait for the connection, in seconds |
config.statementTimeoutSec (body) | integer, 1 or more, optional | How long a statement may run, in seconds |
config.keepAlive (body) | boolean, optional | Send TCP keep-alives |
config.connectionString (body) | string, optional | MongoDB: a connection string that overrides the host, port and sign-in fields |
config.serviceName (body) | string, optional | Oracle: the service name or pluggable database. Required for Oracle |
config.projectId (body) | string, optional | BigQuery: the project ID. Required for BigQuery |
config.account (body) | string, optional | Snowflake: the account identifier. Required for Snowflake |
config.warehouse (body) | string, optional | Snowflake: the warehouse queries run on |
config.schema (body) | string, optional | Snowflake: the schema queries start in |
config.role (body) | string, optional | Snowflake: the role the session uses |
config.organization (body) | string, optional | InfluxDB: the organization. Required for InfluxDB |
config.region (body) | string, optional | DynamoDB: the AWS region, required. BigQuery: the location jobs run in |
config.endpoint (body) | string, optional | An endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake) |
config.readOnly (body) | boolean, optional | When true, statements that write data are refused on this connection |
config.groupings (body) | list of string, optional | DB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping |
config.sshEnabled (body) | boolean, optional | Connect through an SSH tunnel |
config.sshHost (body) | string, optional | The SSH bastion host |
config.sshPort (body) | integer, 1 to 65535, optional | The SSH port, 22 when left out |
config.sshUsername (body) | string, optional | The SSH user name |
config.sshAuthMethod (body) | one of password, privateKey, optional | How to sign in to the bastion |
config.sshPassword (body) | string, optional | The SSH password. Stored encrypted; reads show ****** |
config.sshPrivateKey (body) | string, optional | The SSH private key in PEM format. Stored encrypted; reads show ****** |
config.sshPassphrase (body) | string, optional | The passphrase of the SSH private key. Stored encrypted; reads show ****** |
config.sshHostFingerprint (body) | string, optional | The SHA256 fingerprint of the bastion host key. Required for an SSH tunnel |
DELETE /api/db-devops/connections/:id
Deletes a connection. Shared demo connections cannot be deleted, and a connection a release pipeline uses is refused with 409.
Changes data and can remove or overwrite it · Role: Admin · MCP tool: connections_devops_delete
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
GET /api/db-devops/connections/:id/databases
Connects through the engine and lists the databases on the server, each with its size where reported, a detail and whether it is a system database. listed is false, with a message, for engines that have no list of databases. A server that cannot be reached or read is refused with 502.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_databases
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
GET /api/db-devops/connections/:id/schemas
Lists the schemas of one database on the connection, each marked when it is a system schema. listed is false, with a message, on engines where a run cannot choose a schema (only Oracle, Snowflake and the PostgreSQL family can). A server that cannot be read is refused with 502.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_schemas
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |
database (query) | string, optional | The database on the connection. Leave it out for the connection default |
POST /api/db-devops/connections/:id/test
Tries to connect with the stored settings and returns success and a message. Nothing is saved. A caller who is not an admin needs the Configuration section in one of their roles.
Reads only · Role: Any signed-in user · MCP tool: connections_devops_test
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The connection ID |