---
title: "Get database connection by ID"
method: GET
path: "/v1/database-connections/{databaseConnectionId}"
tags: ["Database connections"]
---

# Get database connection by ID

`GET /v1/database-connections/{databaseConnectionId}`

## Response `200`

Success

- object
  - `databaseConnection` DatabaseConnectionResponse, required
    - `id` string, required — The ID of the connection.
    - `connectionName` string, required — The name of the connection, for display purposes.
    - `databaseType` 'POSTGRESQL' | 'MYSQL' | 'SQLSERVER' | 'ORACLE', required — The SQL flavour of the database.
    - `host` string, required — The host name or address of the database.
    - `port` integer, required — The port number of the database.
    - `databaseName` string, required — The name of the database.
    - `username` string, required — The name of the user to connect to the database as.
    - `links` object, required
      - `self` string, required

## Other responses

- `400` — 400 Bad Request response
- `401` — 401 Unauthenticated response
- `403` — 403 Unauthorized response
- `404` — 404 Not Found response

---

[API](https://skmtc.net/wiremock/apis/wiremock-cloud.md) · [All operations](https://skmtc.net/wiremock/apis/wiremock-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiremock/wiremock-cloud/revisions/93bebefc672f/schema)
