---
title: "Create a new slurm cluster owned by the logged in user."
method: POST
path: "/projects/{project_id}/slurm/clusters"
tags: ["Slurm Clusters"]
---

# Create a new slurm cluster owned by the logged in user.

`POST /projects/{project_id}/slurm/clusters`

A successful response from this resource will contain the async operation ID.

## Path parameters

- `project_id` string, required

## Request body

- SlurmClusterPostRequest
  - `home_volume_size` string — Size of the shared home volume as a Kubernetes quantity string (e.g. "10Ti"). Set empty to omit.
  - `location` string, required — Location to create the Slurm cluster in.
  - `login_node_type` string — Node type to use for Slurm Controller and Login.
  - `login_replicas` integer — Number of replica pods to use for LoginSet.
  - `name` string, required — Name of the Slurm cluster.
  - `root_ssh_pub_keys` string[], required — An array of SSH public keys which will be used to allow access as root user. This will be mounted as the "root/.ssh/authorized_keys" file.
  - `subnet_id` string — The ID of the subnet to deploy the Slurm cluster into.
  - `internal_config` SlurmClusterInternalConfig — SlurmClusterInternalConfig holds internal-only configuration that is used for support and development purposes only.

## Response `200`

- AsyncOperationResponse
  - `operation` Operation, required — Individual resources that use Operations should populate the `metadata` field with resource-specific information.
    - `completed_at` string, required
    - `metadata` string, required
    - `operation_id` string, required
    - `result` string
    - `started_at` string, required
    - `state` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED', required

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `403` — Error Permissions
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
