---
title: "Get a database"
method: GET
path: "/v1/databases/{id}"
tags: ["Databases"]
---

# Get a database

`GET /v1/databases/{id}`

get a database that user owns

## Path parameters

- `id` string, required

## Response `200`

Successful operation

- DBDetails
  - `database` object
    - `DBId` string — The ID of the database
    - `type` string — The type of the database
    - `planID` string — The plan ID
    - `status` string — The status of the database
    - `scale` integer — The scale of the database
    - `hostname` string — The hostname of the database
    - `publicNetwork` boolean — Indicates if the database is on a public network
    - `version` string — The database version
    - `volumeSize` integer — The size of the database volume
    - `created_at` string — The creation timestamp of the database
    - `dbName` string — The name of db
    - `node` object
      - `_id` string — The ID of the database node
      - `host` string — The host of the database node
    - `port` integer — The port number for the database connection
    - `root_password` string — The root password for the database
    - `internalPort` integer — The internal port of the database
    - `id` string — The unique ID of the database
    - `hourlyPrice` number — The hourly price of the database
    - `metaData` object
      - `standaloneReplicaSet` boolean — Indicates if the database uses a standalone replica set
      - `privateNetwork` boolean — Indicates if the database is on a private network
    - `username` string — The username associated with the database

## Other responses

- `400` — Bad request
- `401` — Missing authentication
- `404` — Database not found

---

[API](https://skmtc.net/liara-cloud/apis/dbaas.md) · [All operations](https://skmtc.net/liara-cloud/apis/dbaas/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/liara-cloud/dbaas/versions/6423b3e16f16/schema)
