---
title: "Provision Pending Databases"
method: POST
path: "/internal/clusters/{cluster_id}/provision-databases"
tags: ["internal"]
---

# Provision Pending Databases

`POST /internal/clusters/{cluster_id}/provision-databases`

## 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/clusters/{cluster_id}/provision-databases`
- Auth: none declared. Required headers: `x-service-token`

Provision all pending databases on a cluster.
Called by the worker once the cluster is RUNNING and registered with
ArgoCD (so its operator label can be set). Databases created against a
still-provisioning cluster stay PENDING until this fires.

Replicas are skipped — they stay PENDING until their primary is RUNNING
and are provisioned via /databases/{id}/provision-replica.

## Path parameters

- `cluster_id` string, uuid, required

## 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)
