# Get a Database Instance

Launch stage: Public Preview

`GET /api/2.0/database/instances/{name}`

Get a Database Instance.

 For new workloads, Databricks recommends the Postgres API equivalent:
 [Get a project](https://docs.databricks.com/api/postgres/v1/get-project).

API scopes: postgres

Clouds: AWS, Azure

## Path parameters

- `name` (string, required)
  Name of the instance to get.

## Returns

Returns the DatabaseInstance object.

## Response

### Available instance

```json
{
  "uid": "6f1c2f1e-5b4a-4e3d-9c8b-7a6d5e4f3c2b",
  "name": "sales-orders-db",
  "creator": "user@example.com",
  "read_write_dns": "instance-6f1c2f1e-5b4a-4e3d-9c8b-7a6d5e4f3c2b.database.cloud.databricks.com",
  "creation_time": "2025-06-01T12:00:00Z",
  "state": "AVAILABLE",
  "pg_version": "PG_VERSION_16",
  "capacity": "CU_1",
  "effective_capacity": "CU_1",
  "effective_stopped": false,
  "effective_node_count": 1,
  "effective_enable_readable_secondaries": false,
  "effective_retention_window_in_days": 7,
  "effective_enable_pg_native_login": false
}
```

