---
title: "List BYOC clusters with Prometheus"
method: GET
path: "/api/v1/prometheus/clusters"
tags: ["Prometheus Configuration"]
---

# List BYOC clusters with Prometheus

`GET /api/v1/prometheus/clusters`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/prometheus/clusters`
- Auth: API key in header `Authorization`

Get a list of all Bring Your Own Cluster (BYOC) clusters that have Prometheus configured for a specific user

## Query parameters

- `user_id` string, required

## Response `200`

List of BYOC clusters with Prometheus configuration

- ClusterInfoClusterInfoUserPrometheus[]
  - `adminClusterDetails` string
  - `clusterConfigURL` string
  - `clusterID` string
  - `id` string
  - `isActive` boolean
  - `lastPrometheusCheck` string
  - `locationName` string
  - `prometheusAuthType` string
  - `prometheusBearerToken` string: Encrypted
  - `prometheusPassword` string: Encrypted
  - `prometheusURL` string
  - `prometheusUsername` string
  - `regionCode` string
  - `userID` string

## Other responses

- `400`: Bad request - Missing user_id
- `500`: Internal server error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
