---
title: "Get idle clusters"
method: GET
path: "/api/v1/databricks/opportunities/idle-clusters"
tags: ["DATABRICKS", "Databricks", "Databricks Opportunities"]
---

# Get idle clusters

`GET /api/v1/databricks/opportunities/idle-clusters`

Get clusters that have been idle for extended periods.

## Query parameters

- `idle_hours` integer — Hours of inactivity to consider idle
- `workspace_id` string, nullable — Filter by workspace ID
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- IdleClustersResponse — Response for idle clusters opportunities.
  - `opportunities` IdleClusterOpportunity[], required
    - `cluster_id` string, required
    - `cluster_name` string, required
    - `workspace_id` string, required
    - `workspace_name` string, nullable
    - `state` string, required
    - `last_state_change` string, date-time, required
    - `worker_count` integer, nullable
    - `driver_node_type` string, nullable
    - `worker_node_type` string, nullable
  - `total_count` integer, required
  - `idle_hours` integer, required

## Other responses

- `403` — Not authorized
- `404` — No ClickHouse database configured
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/103580dad816/schema)
