---
title: "List Idle Host Clusters"
method: GET
path: "/internal/host-clusters/idle"
tags: ["internal"]
---

# List Idle Host Clusters

`GET /internal/host-clusters/idle`

## 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/host-clusters/idle`
- Auth: none declared. Required headers: `x-service-token`

List host clusters that have been idle (no vClusters) for more than idle_hours.
Used by the cleanup job to identify clusters to delete.

Also reconciles stale current_vclusters counters by checking actual vCluster
records in the database, preventing clusters from being missed by cleanup.

## Query parameters

- `idle_hours` integer

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