---
title: "Retrieve all namespaces of the cluster"
method: GET
path: "/clusters/{clusterId}/namespaces"
tags: ["clusters"]
---

# Retrieve all namespaces of the cluster

`GET /clusters/{clusterId}/namespaces`

## Request

- Base URL: `https://pmp-demo.privateplatform.mendix.com/clusterservice/v1`
- URL: `https://pmp-demo.privateplatform.mendix.com/clusterservice/v1/clusters/{clusterId}/namespaces`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Retrieve all namespaces of the cluster

## Path parameters

- `clusterId` string, required

## Query parameters

- `RetrieveCluster` 'Yes' | 'No'

## Response `200`

List of namespaces

- array[]
  - Namespace[]
    - `namespaceId` string
    - `namespace` string
    - `isShared` 'Yes' | 'No': Indicate if the namespace is shared, applicable only for Standalone mode cluster.
    - `enableSecretStore` 'Yes' | 'No'
    - `secretStoreType` 'AUTOMATIC' | 'MANUAL': Secret Store Type, applicable only for Standalone mode cluster.
    - `useCustomCoreResourcePlan` 'Yes' | 'No': Indicate if the namespace allow to use Custom Core Resource Plan, applicable only for Connected mode cluster.

## Other responses

- `400`: Invalid input parameter or request body
- `401`: Authentication information is missing or invalid
- `403`: User has no permission for this operation
- `404`: Resource not found

---

[API](https://skmtc.dev/mendix/apis/cluster-service-v1.md) - [All operations](https://skmtc.dev/mendix/apis/cluster-service-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/mendix/apis/cluster-service-v1/revisions/ce8d4c9c1a02?raw)
