---
title: "Add cluster"
method: POST
path: "/v1/cluster"
tags: ["Cluster"]
---

# Add cluster

`POST /v1/cluster`

Add cluster

## Headers

- `Authorization` string, required

## Request body

- ClusterCreateClusterRequest
  - `kubeconfig` string, required
  - `name` string, required
  - `storage_class` string

## Response `200`

OK

- ModelClusterModel
  - `created_at` string
  - `id` integer
  - `info` string
  - `kubeconfig` string, required
  - `name` string, required
  - `server` string
  - `storage_class` string
  - `user_id` integer

## Changes

> 43 revisions in range; 1 could not be searched.

- **2020-12-13** `2743e3738539` — 2 info
  - api tag `Cluster` added
  - api tag `集群` removed
- **2020-10-29** `626c0be310f3` — 2 info
  - api tag `集群` added
  - api tag `Cluster` removed

[Change history](https://skmtc.dev/nocalhost/apis/nocalhost-docs-api/changes/v1/cluster/post.md)

---

[API](https://skmtc.dev/nocalhost/apis/nocalhost-docs-api.md) · [All operations](https://skmtc.dev/nocalhost/apis/nocalhost-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nocalhost/nocalhost-docs-api/revisions/9f53c7025f7a/schema)
