---
title: "Deploy a cluster"
method: POST
path: "/clusters/{clusterId}/_deploy"
tags: ["Clusters"]
---

# Deploy a cluster

`POST /clusters/{clusterId}/_deploy`

## Request

- Base URL: `/management/v2/environments/DEFAULT` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/management/v2/environments/DEFAULT/clusters/{clusterId}/_deploy`
- Auth: one of:
  - HTTP basic
  - API key in cookie `Auth-Graviteeio-APIM`

Deploy the cluster to the gateway. Sets lifecycle state to DEPLOYED and increments version.

## Response `200`

Cluster deployed

- Cluster
  - `id` string
  - `crossId` string: Portable identifier for cross-environment references. Immutable after creation.
  - `type` 'KAFKA_CLUSTER_STANDALONE' | 'KAFKA_CLUSTER' | 'KAFKA_VIRTUAL_CLUSTER'
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `name` string
  - `description` string
  - `configuration` object
  - `groups` string[]
  - `lifecycleState` 'UNDEPLOYED' | 'DEPLOYED' | 'PENDING': Current lifecycle state of the cluster.
  - `deployedAt` string, date-time: Last deployment or undeployment timestamp.
  - `version` integer: Deployment version, incremented on each deploy.

## Other responses

- `400`: A Kafka virtual cluster cannot be deployed without at least one backend.
- `default`: Generic error response

## Changes

- **2026-07-15** `a1b0ba1d3e06`: 1 info
  - added the non-success response with the status `400`
- **2026-04-22** `ac9b3975b952`: 1 warning
  - added the new `KAFKA_VIRTUAL_CLUSTER` enum value to the `type` response property for the response status `200`
- **2026-04-22** `86ed32989ff4`: 1 warning, 1 info
  - added the new `KAFKA_CLUSTER_STANDALONE` enum value to the `type` response property for the response status `200`
  - removed the `KAFKA_CLUSTER_CONNECTION` enum value from the `type` response property for the response status `200`
- **2026-04-20** `569d0ad5a374`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/changes/clusters/:clusterId/_deploy/post.md)

---

[API](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments.md) - [All operations](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/llms.txt) - [OpenAPI document](https://skmtc.dev/gravitee-io/apis/gravitee-io-apim-management-api-environments/revisions/b736a7e375df?raw)
