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

# Get details for a Kubernetes cluster

> Returns namespaces, pods, and containers for the specified cluster.



## OpenAPI

````yaml openapi/kubernetes/kubernetes_clusters.yaml GET /kubernetes/clusters/{clusterName}
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/{clusterName}:
    get:
      tags:
        - Kubernetes Clusters
      summary: Get details for a Kubernetes cluster
      description: Returns namespaces, pods, and containers for the specified cluster.
      operationId: getKubernetesClusterDetails
      parameters:
        - $ref: '#/components/parameters/k8s_clusterName'
      responses:
        '200':
          description: Cluster details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClusterDetails'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Cluster not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  parameters:
    k8s_clusterName:
      name: clusterName
      in: path
      required: true
      description: >-
        Unique cluster name from /kubernetes/clusters or the Kubex UI
        Connections tab.
      schema:
        type: string
  schemas:
    ClusterDetails:
      allOf:
        - $ref: '#/components/schemas/ClusterSummary'
        - type: object
          properties:
            namespaces:
              type: array
              description: Namespaces discovered in the cluster.
              items:
                $ref: '#/components/schemas/Namespace'
    Error:
      type: object
      properties:
        status:
          type: integer
        message:
          type: string
    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.
    Namespace:
      type: object
      properties:
        namespace:
          type: string
          description: Namespace name.
        pods:
          type: array
          items:
            $ref: '#/components/schemas/Pod'
    Pod:
      type: object
      properties:
        podOwnerName:
          type: string
          description: The owner (controller) name for the pod.
        containers:
          type: array
          description: Container names in the pod.
          items:
            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

````