---
title: "List namespaces from a Kubernetes cluster"
method: GET
path: "/api/v1/k8s/logs/namespaces"
tags: ["K8s Logs"]
---

# List namespaces from a Kubernetes cluster

`GET /api/v1/k8s/logs/namespaces`

## Request

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

Retrieve all namespaces from a specific cluster

## Query parameters

- `cluster_id` string, required

## Response `200`

OK

- string[]

---

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