---
title: "List pods"
method: GET
path: "/api/v1/k8s/logs/pods"
tags: ["K8s Cluster Info"]
---

# List pods

`GET /api/v1/k8s/logs/pods`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/pods`
- Auth: none declared

List all Kubernetes pods for a given cluster and namespace

## Query parameters

- `clusterId` string, required
- `namespace` string, required

## Response `200`

List of pod names

- 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)
