---
title: "Get Pending Databases On Ready Clusters"
method: GET
path: "/internal/databases/pending-on-ready-clusters"
tags: ["internal"]
---

# Get Pending Databases On Ready Clusters

`GET /internal/databases/pending-on-ready-clusters`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/databases/pending-on-ready-clusters`
- Auth: none declared. Required headers: `x-service-token`

Return distinct cluster IDs that are RUNNING and have at least one PENDING
non-replica database waiting to be provisioned.

The worker's database status-sync reconcile polls this and calls
/clusters/{id}/provision-databases for each, so a pending database is
picked up no matter how/when its cluster became ready (fresh provision,
import, drift) — replacing the one-shot trigger in the provisioning task.

## Headers

- `x-service-token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
