---
title: "Get cluster analysis"
method: GET
path: "/api/v1/k8s/logs/clusters/{cluster_id}/analysis"
tags: ["K8s Cluster Info"]
---

# Get cluster analysis

`GET /api/v1/k8s/logs/clusters/{cluster_id}/analysis`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/clusters/{cluster_id}/analysis`
- Auth: none declared

Retrieve detailed analysis of a Kubernetes cluster including version, node info, pod, and namespace counts

## Path parameters

- `cluster_id` string, required

## Response `200`

Cluster analysis report

- K8sLogsClusterAnalysis
  - `namespaceCount` integer
  - `nodes` K8sLogsNodeInfo[]
    - `age` string
    - `architecture` string
    - `cpu` string
    - `externalIp` string
    - `internalIp` string
    - `kubeletVersion` string
    - `memory` string
    - `name` string
    - `os` string
    - `pods` string
    - `ready` string
    - `roles` string[]
    - `unschedulable` boolean
  - `podCount` integer
  - `version` string

## Other responses

- `400`: Bad Request
- `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)
