---
title: "Create a rack instance"
method: POST
path: "/racks"
tags: ["rack"]
---

# Create a rack instance

`POST /racks`

Create a rack instance

## Request body

- RackIntentInput — An intentful representation of a rack
  - `spec` Rack, required — Rack entity definition
    - `name` string, required — Name of the rack
    - `resources` RackResources, required — Rack entity definition
      - `cell_reference` CellReference — The reference to a cell
        - `kind` string, required — The kind name
        - `name` string
        - `uuid` string, UUID, required
      - `location` string — The rack location
  - `api_version` string
  - `metadata` RackMetadata, required — The rack kind metadata
    - `last_update_time` string, date-time — UTC date and time in RFC-3339 format when rack was last updated
    - `kind` string, required — The kind name
    - `uuid` string, UUID — rack uuid
    - `spec_version` integer — Version number of the latest spec.
    - `creation_time` string, date-time — UTC date and time in RFC-3339 format when rack was created
    - `spec_hash` string — Hash of the spec. This will be returned from server.
    - `should_force_translate` boolean — Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
    - `owner_reference` UserReference — The reference to a user
      - `kind` string, required — The kind name
      - `name` string
      - `uuid` string, UUID, required
    - `categories` object — Categories for the rack
    - `name` string — rack name

## Response `202`

Request Accepted

- RackIntentResponse — Response object for intentful operations on a rack
  - `status` RackDefStatus — Rack entity status defintion
    - `state` string — The state of the rack entity
    - `message_list` MessageResource[]
      - `message` string, required — If state is ERROR, a message describing the error.
      - `reason` string, required — If state is ERROR, a machine-readable snake-cased string.
      - `details` object — Custom key-value details relevant to the status.
    - `name` string, required — Rack Name
    - `resources` RackResources, required — Rack entity definition
      - `cell_reference` CellReference — The reference to a cell
        - `kind` string, required — The kind name
        - `name` string
        - `uuid` string, UUID, required
      - `location` string — The rack location
  - `spec` Rack — Rack entity definition
    - `name` string, required — Name of the rack
    - `resources` RackResources, required — Rack entity definition
      - `cell_reference` CellReference — The reference to a cell
        - `kind` string, required — The kind name
        - `name` string
        - `uuid` string, UUID, required
      - `location` string — The rack location
  - `api_version` string, required
  - `metadata` RackMetadata, required — The rack kind metadata
    - `last_update_time` string, date-time — UTC date and time in RFC-3339 format when rack was last updated
    - `kind` string, required — The kind name
    - `uuid` string, UUID — rack uuid
    - `spec_version` integer — Version number of the latest spec.
    - `creation_time` string, date-time — UTC date and time in RFC-3339 format when rack was created
    - `spec_hash` string — Hash of the spec. This will be returned from server.
    - `should_force_translate` boolean — Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
    - `owner_reference` UserReference — The reference to a user
      - `kind` string, required — The kind name
      - `name` string
      - `uuid` string, UUID, required
    - `categories` object — Categories for the rack
    - `name` string — rack name

## Other responses

- `default` — Internal Error

---

[API](https://skmtc.net/nutanix/apis/nutanix-intentful-api.md) · [All operations](https://skmtc.net/nutanix/apis/nutanix-intentful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nutanix/nutanix-intentful-api/revisions/40395083ab31/schema)
