---
title: "Read actual managed database compute configuration"
method: GET
path: "/v1/projects/{project_id}/database/compute"
---

# Read actual managed database compute configuration

`GET /v1/projects/{project_id}/database/compute`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/projects/{project_id}/database/compute`
- Auth: HTTP bearer

Project readers can observe current Dev or Prod compute without receiving provider IDs or credentials and without executing SQL or waking the database. Explicitly shared data resolves to the same physical database for both environments. A null database means the owned environment has no confirmed managed placement. Provider failures return a problem, never invented defaults. Configuration describes observed settings, not a completed resize operation. suspend_timeout_seconds is the configured provider value; 0 means provider default and -1 means never suspend.

## Path parameters

- `project_id` string, required

## Query parameters

- `environment` 'dev' | 'prod'

## Headers

- `X-Request-Id` string

## Response `200`

Fresh, tenant-scoped compute observation.

- DatabaseCompute
  - `project_id` string, required
  - `environment` 'dev' | 'prod', required
  - `data_mode` 'shared' | 'isolated', required
  - `observed_at` string, date-time, required
  - `database` object, nullable, required
    - `min_cu` number, required
    - `max_cu` number, required
    - `min_memory_gb` number, required
    - `max_memory_gb` number, required
    - `suspend_timeout_seconds` integer, required: Configured timeout: 0 is provider default; -1 disables suspension.
    - `state` 'init' | 'active' | 'idle', required
    - `pending_state` 'init' | 'active' | 'idle' | 'null', nullable, required
    - `disabled` boolean, required
    - `region` string, required

## Other responses

- `400`: The request failed.
- `401`: The request failed.
- `404`: The resource does not exist or is not visible to the authenticated principal.
- `429`: The request failed.
- `503`: The request failed.

---

[API](https://skmtc.dev/ohmyho/apis/ohmyho-st-api.md) · [All operations](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/revisions/d069888c0017?raw)
