Kubermatic Clusters API

The Clusters API from Kubermatic — 5 operation(s) for clusters.

Operations 5

GET /api/clusters Lists all registered clusters #
POST /api/clusters/kubeconfig Uploads a kubeconfig to register new clusters #
GET /api/clusters/prod-us-east/kube/apis/external-secrets.io/v1/externalsecrets Proxies a request to a specific cluster’s Kubernetes API server for… #
DELETE /api/clusters/{id} Deregisters a cluster: deletes the per-cluster Secret and removes the cluster… #
GET /api/clusters/{id}/health Health-checks a specific cluster by connecting to its Kubernetes API server #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kubermatic-clusters-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kubermatic-clusters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kubermatic Clusters API
  version: '2026-10-03'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-03: 15 operation(s) read from 5 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Kubermatic has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 6
    documentation: 9
    pages-with-code: 4
    pages-read: 5
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-03'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.kubermatic.com/kubelb/v1.5/security
  - https://docs.kubermatic.com/kubeone/v1.14/getting-kubeone
  - https://docs.kubermatic.com/secureguard/main/api-reference
  - https://docs.kubermatic.com/developer-platform/v1.2/setup/mcp-gateway
  - https://docs.kubermatic.com/kubeone/v1.14/tutorials/creating-clusters
servers:
- url: https://github.com
tags:
- name: Clusters
paths:
  /api/clusters:
    get:
      operationId: get_api_clusters
      tags:
      - Clusters
      summary: Lists all registered clusters
      description: Returns an array of cluster objects with id, name, and status.
      x-source: https://docs.kubermatic.com/secureguard/main/api-reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiClustersResponse'
      x-evidence:
        kind: documentation
  /api/clusters/kubeconfig:
    post:
      operationId: post_api_clusters_kubeconfig
      tags:
      - Clusters
      summary: Uploads a kubeconfig to register new clusters
      description: Accepts multipart/form-data; registers each context as a secret and returns details of created contexts.
      x-source: https://docs.kubermatic.com/secureguard/main/api-reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiClustersKubeconfigRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiClustersKubeconfigResponse'
      x-evidence:
        kind: documentation
  /api/clusters/prod-us-east/kube/apis/external-secrets.io/v1/externalsecrets:
    get:
      operationId: get_api_clusters_prod_us_east_kube_apis_external_secrets_io_v1_externalsecrets
      tags:
      - Clusters
      summary: Proxies a request to a specific cluster’s Kubernetes API server for…
      description: Returns the list of ExternalSecret resources from the cluster identified by prod-us-east.
      x-source: https://docs.kubermatic.com/secureguard/main/api-reference
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/clusters/{id}:
    delete:
      operationId: delete_api_clusters_id
      tags:
      - Clusters
      summary: 'Deregisters a cluster: deletes the per-cluster Secret and removes the cluster…'
      description: Cannot delete the management cluster; returns JSON with the deleted cluster id.
      x-source: https://docs.kubermatic.com/secureguard/main/api-reference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiClustersIdResponse'
      x-evidence:
        kind: documentation
  /api/clusters/{id}/health:
    get:
      operationId: get_api_clusters_id_health
      tags:
      - Clusters
      summary: Health-checks a specific cluster by connecting to its Kubernetes API server
      description: Returns the health status of the specified cluster.
      x-source: https://docs.kubermatic.com/secureguard/main/api-reference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiClustersIdHealthResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiClustersResponse:
      type: object
      properties:
        id:
          type: string
          description: Cluster identifier.
        name:
          type: string
          description: Cluster name.
        status:
          type: string
          description: Cluster connection status (connected, disconnected, unknown).
    PostApiClustersKubeconfigRequest:
      type: object
      properties:
        kubeconfig:
          type: string
          description: The kubeconfig file to upload.
        registerAgent:
          type: string
          description: Set to "true" to create an SGAgent CR.
        clusterName:
          type: string
          description: Name for the SGAgent (defaults to the first context).
      required:
      - kubeconfig
    PostApiClustersKubeconfigResponse:
      type: object
      properties:
        contexts:
          type: array
          description: List of context names that were registered.
        agentCreated:
          type: boolean
          description: Indicates whether an SGAgent was created.
    GetApiClustersIdHealthResponse:
      type: object
      properties:
        id:
          type: string
          description: Cluster identifier.
        status:
          type: string
          description: Cluster connection status.
    DeleteApiClustersIdResponse:
      type: object
      properties:
        deleted:
          type: string
          description: The identifier of the deleted cluster.