> ## Documentation Index
> Fetch the complete documentation index at: https://densify-sync-changelog-6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Kubernetes clusters

> Returns all clusters from which data is being collected. No filtering is applied.



## OpenAPI

````yaml openapi/kubernetes/kubernetes_clusters.yaml GET /kubernetes/clusters
openapi: 3.0.3
info:
  title: Kubex API – Kubernetes Clusters
  version: 1.0.0
  description: |
    Endpoints to list Kubernetes clusters configured in the data forwarder
    and to retrieve structured details for a specific cluster. No filtering
    is applied. Unlike the /systems and /results endpoints, these do not
    require an analysis ID.
servers:
  - url: https://{host}/api/v2
    variables:
      host:
        default: api.example.com
        description: Replace with your Kubex API host
security: []
tags:
  - name: Kubernetes Clusters
    description: Clusters discovered via the data forwarder
paths:
  /kubernetes/clusters:
    get:
      tags:
        - Kubernetes Clusters
      summary: List Kubernetes clusters
      description: >-
        Returns all clusters from which data is being collected. No filtering is
        applied.
      operationId: listKubernetesClusters
      responses:
        '200':
          description: Array of clusters
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClusterSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  schemas:
    ClusterSummary:
      type: object
      properties:
        cluster:
          type: string
          description: Cluster name as specified in config.yaml.
        firstCollectionTime:
          type: string
          format: date-time
          description: When data collection started (UTC).
        lastCollectionTime:
          type: string
          format: date-time
          description: Most recent data collection time (UTC).
        nodeCount:
          type: string
          description: Number of nodes discovered in the cluster.
        nodeGroupCount:
          type: string
          description: Number of node groups discovered in the cluster.
        containerCount:
          type: string
          description: Number of containers discovered in the cluster.
        kubexAgentVersion:
          type: string
          description: Data forwarder (Kubex agent) version.
        kubernetesVersion:
          type: string
          description: Kubernetes version.
        prometheusVersion:
          type: string
          description: Prometheus version.
    Error:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````