---
title: Schemas
description: Object schemas used by the API's request and response bodies.
canonical: 'https://lightning.ai/docs/platform/cluster/api-reference/schemas'
---
# Schemas {#schemas}

Object schemas used by request and response bodies.

## AddFleetSSHKeyRequest {#addfleetsshkeyrequest}

Identifies the already-registered SSH key to apply to the fleet.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sshKeyId` | string (uuid) | Yes | Identifier of an SSH key record in the caller's organization. Every public key held by that record is applied. |

## AddFleetSSHKeyResponse {#addfleetsshkeyresponse}

Acknowledgement that key propagation was accepted.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `message` | string | Yes | Human-readable outcome of the request. |
| `nodeCount` | integer | Yes | Number of already-provisioned nodes the keys will be applied to. Zero means the fleet has no running nodes yet and the keys will arrive with cloud-init when its nodes deploy. |

## AddStorageViewRequest {#addstorageviewrequest}

Request to add a new physical VAST storage view to a fleet. At least one quota field (`size`, `hardLimit`, or `softLimit`+`hardLimit`) is required. Accepted quota shapes: (1) `size` alone, (2) `hardLimit` alone (treated as an alias for `size`; the soft quota is then set to 90% automatically), or (3) `softLimit`+`hardLimit` together (or `softLimit`+`size`, since `size` and `hardLimit` are aliases). `softLimit` on its own is rejected. If both `size` and `hardLimit` are supplied they must be equal.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `mountPoint` | string | Yes | Mount point for the new storage view. One path segment under '/', charset [a-zA-Z0-9_-], max 128 characters. Maximum length: 128. |
| `size` | integer (int64) | No | Provisioned size in bytes. Must be a positive multiple of 1 MiB (1048576 bytes). May be supplied on its own (the soft quota is then set to 90% of size automatically); when supplied together with `hardLimit`, the two must be equal. Minimum: 1048576. |
| `softLimit` | integer (int64) | No | Soft quota in bytes. Must be a positive multiple of 1 MiB (1048576 bytes) and less than or equal to the hard quota. Must be supplied together with `hardLimit` (or with `size` acting as the hard quota). Minimum: 1048576. |
| `hardLimit` | integer (int64) | No | Hard quota in bytes. Must be a positive multiple of 1 MiB (1048576 bytes). May be supplied on its own (treated as an alias for `size`; the soft quota is then set to 90% automatically) or together with `softLimit`. When supplied together with `size`, the two must be equal. Minimum: 1048576. |
| `protectionPolicy` | [StorageProtectionPolicy](/docs/platform/cluster/api-reference/schemas.md#storageprotectionpolicy) | No |  |
| `provision` | boolean | No | Whether to trigger VAST provisioning after adding the view. Only applies when storage has not yet been provisioned. Default: `true`. |

## AuditLogEntry {#auditlogentry}

A single audit event for an organization: who performed an operation, when, and from where. This is a curated, customer-facing subset of the internal audit record.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `timestamp` | string (date-time) | Yes | When the request completed (RFC 3339 / ISO 8601, UTC). |
| `userId` | string | No | Identifier of the user (token subject) who made the request, when available. |
| `operation` | string | Yes | High-level operation name for the request (e.g., LIST_FLEETS, DELETE_FLEET). |
| `method` | string | Yes | HTTP method of the request (e.g., GET, POST, DELETE). |
| `route` | string | Yes | Matched route template for the request (e.g., `GET /v1/fleets/{fleetId}`). |
| `statusCode` | integer | Yes | HTTP status code returned for the request. |
| `authOutcome` | string | No | Authorization outcome for the request (e.g., 'allowed', 'denied', 'unauthenticated'). |
| `clientIp` | string | No | Best-effort client IP address the request originated from, when available. |
| `userAgent` | string | No | User-agent string reported by the client, when available. |
| `resource` | string | No | Concrete resource(s) the request acted on, flattened as comma-separated key=value pairs (e.g. 'fleetId=f-123' or 'fleetId=f-123,nodeId=g001'). Absent when the request targeted no specific resource. Whereas 'route' shows the template, this shows the actual identifiers. |

## AuditLogExportStatusResponse {#auditlogexportstatusresponse}

State of the caller's 90-day audit export: which window it covers, whether the archive is ready, and - once it is - a short-lived presigned download URL.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `status` | string | Yes | Where the export stands. 'notStarted': no archive for today's window and nothing running - POST to start one. 'running': a build is in progress, poll again in a few seconds. 'ready': the archive is complete and 'url' is present. 'failed': the build did not finish, see 'error', and POST to retry. **Which operation returns which:** POST only ever returns 'running' or 'ready' - starting an export always leaves it in one of those two states. All four are possible from GET. 'notStarted' is therefore GET-only, and you will see it when you check before any export has been requested, and again after each UTC midnight, when the previous day's archive no longer covers the current window. One of: `notStarted`, `running`, `ready`, `failed`. |
| `windowStart` | string (date-time) | Yes | Inclusive start of the exported window: a UTC midnight, 90 days before 'windowEnd'. |
| `windowEnd` | string (date-time) | Yes | Exclusive end of the exported window: the most recent UTC midnight. The current partial day is not included. |
| `format` | string | Yes | Archive encoding: gzip-compressed newline-delimited JSON, one audit event per line. One of: `ndjson+gzip`. |
| `url` | string (uri) | No | Presigned HTTPS URL for the gzipped NDJSON archive. Present only when 'status' is 'ready'. Treat it as a credential: anyone holding it can download the archive until it expires. |
| `expiresAt` | string (date-time) | No | When 'url' stops working (RFC 3339 / ISO 8601, UTC). Present only when 'status' is 'ready'. Minutes, not hours - call the endpoint again for a fresh URL. The archive itself outlives the URL. |
| `startedAt` | string (date-time) | No | When the current (or most recent) build started. Absent when 'status' is 'notStarted'. |
| `completedAt` | string (date-time) | No | When the build finished, successfully or not. Present only when 'status' is 'ready' or 'failed'. |
| `error` | string | No | Short, non-sensitive reason the build failed. Present only when 'status' is 'failed'. |

## AuditLogListResponse {#auditloglistresponse}

A bounded, newest-first list of recent audit events for the caller's organization.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `items` | array of [AuditLogEntry](/docs/platform/cluster/api-reference/schemas.md#auditlogentry) | Yes | Recent audit events, newest first. Empty array (not null) when there is no recent activity. |

## Bootstrap {#bootstrap}

Bootstrap configuration for fleet nodes. Provide either sshUsers (recommended) or ssh-pub-keys for SSH access.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cloudInit` | string | No | Node setup applied by cloud-init on every node, including nodes added by scaling. Accepts a script that starts with `#!`, a `#cloud-config` document, or plain shell commands, which run with bash. `#include`, `#cloud-boothook`, Jinja templates, `#part-handler`, MIME multi-part, and compressed content are rejected. A `#cloud-config` document must be a single YAML mapping that cloud-init can load; if it sets `users`, that must be a list of names or user mappings. It must not configure disks or filesystems, change cloud-init's module lists, or mount over or inside system directories or the fleet's storage mount points; mount paths must not contain `..`. |
| `machineImage` | string | Yes | Machine image to use. On a Managed Kubernetes v2 fleet, an image whose name marks it as built for a different CPU architecture (amd64 or arm64) than the selected nodes is rejected. |
| `sshUsers` | array of string | No | List of SSH usernames from your organization's SSH key management. Each user's public keys will be added and a corresponding Linux user will be created on each node. |
| `ssh-pub-keys` | array of string | No | DEPRECATED: Use sshUsers instead. Raw keys for backward compatibility only. **Deprecated.** |
| `sudoAccess` | string | No | Controls sudo access for the SSH users the API creates on every node in the fleet (both sshUsers and the deprecated ssh-pub-keys path). When enabled, each API-managed user is granted passwordless sudo; when disabled, users are created without any API-managed sudo rule. Applies to fleets without managed Kubernetes and is fixed at creation time. Defaults to enabled. One of: `enabled`, `disabled`. |

## ClusterValidationCatalogResponse {#clustervalidationcatalogresponse}

Catalog of available cluster-validation tests grouped by category. Shaped as {"categories": {"<category>": {"description": "...", "tests": [{"name": "...", "description": "..."}]}}}.

Type: object. Catalog of available cluster-validation tests grouped by category. Shaped as {"categories": {"<category>": {"description": "...", "tests": [{"name": "...", "description": "..."}]}}}.

## ClusterValidationDetail {#clustervalidationdetail}

Typed view of a single cluster-validation run. The upstream validator's internal wire format is not exposed; callers code against the fields defined here.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `validationId` | integer | Yes | Cluster-validation run id. Use it to poll status, abort, or download logs. |
| `state` | string | Yes | Current run state. One of: `PENDING`, `PREP`, `RUNNING`, `CLEANUP`, `ABORTING`, `ABORTED`, `SKIPPED`, `COMPLETED`, `UNHEALTHY`. |
| `multiHost` | boolean | No | Whether the run executes a single test across all selected nodes (multi-host) rather than one test per node. |
| `kubernetes` | boolean | No | Whether the run uses Kubernetes-aware validation tests. Maps from the infrastructure service's k8s flag. |
| `nodeNames` | array of string | No | Fleet node names included in this run. |
| `requestId` | string, nullable | No | Unique identifier for the underlying test request, when present. |
| `createdAt` | string (date-time), nullable | No | When the run was created. |
| `startTime` | string (date-time), nullable | No | When the run became active. |
| `endTime` | string (date-time), nullable | No | When the run ended, when applicable. |

## ClusterValidationListResponse {#clustervalidationlistresponse}

A bounded, newest-first list of recent cluster-validation runs for a fleet (capped at 10).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `items` | array of [ClusterValidationDetail](/docs/platform/cluster/api-reference/schemas.md#clustervalidationdetail) | Yes | Recent runs, newest first. Empty array (not null) when the fleet has no runs. |

## ClusterValidationReportResponse {#clustervalidationreportresponse}

Cluster-validation report passed through from the infrastructure service, including per-node pass/fail status and references for downloading individual result logs. Fields are passed through unchanged.

Type: object. Cluster-validation report passed through from the infrastructure service, including per-node pass/fail status and references for downloading individual result logs. Fields are passed through unchanged.

## ClusterValidationResponse {#clustervalidationresponse}

Status of a cluster-validation run. The API surfaces the documented fields; additional fields reported by the upstream validator may be included for forward compatibility and should not be relied on.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `validationId` | integer | No | Cluster-validation run id. Use it to poll status, abort, or download logs. |
| `status` | string | No | Current run status (e.g. RUNNING, COMPLETED, FAILED, ABORTED). |

## CreateSSHKeyRequest {#createsshkeyrequest}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Linux username (POSIX-compliant). 1-32 chars, starts with letter/underscore. |
| `publicKey` | string | Yes | SSH public key in any standard format. Will be normalized to OpenSSH format. |
| `description` | string | No | Optional description for this key (e.g., 'MacBook Pro') Maximum length: 256. |

## CustomerTriggerClusterValidationRequest {#customertriggerclustervalidationrequest}

Request to start a cluster-validation run against your fleet's nodes. Runs are always multi-host; that is not configurable.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeNames` | array of string | No | Optional subset of fleet node names to validate. Each name must belong to your fleet. Omit (or send an empty list) to validate all nodes in the fleet. |
| `kubernetes` | boolean | No | When true, run Kubernetes-aware validation tests. Requires a Kubernetes-enabled fleet; the required cluster credential is obtained automatically and is never supplied by the caller. Default: `false`. |
| `tests` | array of string | No | Optional list of test names to run (from the cluster-validation test catalog). Omit to run the default set of tests. |

## ErrorResponse {#errorresponse}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `error` | string | Yes | Error message |
| `code` | string | No | Error code |
| `timestamp` | integer | Yes | Timestamp when the error occurred (milliseconds since epoch UTC) |
| `details` | object | No | Optional structured detail, e.g. per-field validation errors |

## ExpandableCapacity {#expandablecapacity}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `gpuNodes` | [ExpandableNodeSpec](/docs/platform/cluster/api-reference/schemas.md#expandablenodespec) | No |  |

## ExpandableNodeSpec {#expandablenodespec}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instanceType` | string | Yes | Server-derived compute instance type. `mixed` means the nodes have different GPU models; `unknown` means the hardware could not be determined. |
| `maxReplicas` | integer | Yes | Maximum number of replicas |
| `nodes` | array of [FleetNode](/docs/platform/cluster/api-reference/schemas.md#fleetnode) | No | READ-ONLY: List of actual node details with IPs. This field is populated automatically during scaling operations and should not be provided in creation requests. Read-only. |

## ExternalStorageConfig {#externalstorageconfig}

External storage configuration

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `mountPath` | string | Yes | Mount path for the external storage |
| `size` | string | Yes | Storage size |

## Fleet {#fleet}

A fleet represents a cluster of GPU nodes provisioned for your workloads

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleetId` | string | Yes | Unique identifier for the fleet |
| `name` | string | Yes | Human-readable name for the fleet |
| `status` | [FleetStatus](/docs/platform/cluster/api-reference/schemas.md#fleetstatus) | Yes |  |
| `requestedAt` | integer | Yes | Timestamp when the fleet was requested (milliseconds since epoch UTC) |
| `provisionedAt` | integer | No | Timestamp when the fleet was provisioned (milliseconds since epoch UTC) |
| `createdAt` | integer | Yes | Timestamp when the fleet was created (milliseconds since epoch UTC) |
| `updatedAt` | integer | Yes | Timestamp when the fleet was last updated (milliseconds since epoch UTC) |
| `computeType` | string | Yes | Type of compute resources |
| `minimumFootprint` | [FleetComputeFootprint](/docs/platform/cluster/api-reference/schemas.md#fleetcomputefootprint) | Yes |  |
| `expandableCapacity` | [ExpandableCapacity](/docs/platform/cluster/api-reference/schemas.md#expandablecapacity) | No |  |
| `infrastructure` | [Infrastructure](/docs/platform/cluster/api-reference/schemas.md#infrastructure) | Yes |  |
| `bootstrap` | [Bootstrap](/docs/platform/cluster/api-reference/schemas.md#bootstrap) | Yes |  |
| `fleetApps` | [FleetApps](/docs/platform/cluster/api-reference/schemas.md#fleetapps) | No |  |
| `osConfig` | [OsConfig](/docs/platform/cluster/api-reference/schemas.md#osconfig) | No |  |
| `orderId` | string (uuid), nullable | No | Linked order ID. Null if this fleet is not associated with an order. |
| `managedBy` | [FleetManagedBy](/docs/platform/cluster/api-reference/schemas.md#fleetmanagedby) | No | The service that manages this fleet's size, if any. While set, scale requests from anyone else are refused with code `FLEET_MANAGED_EXTERNALLY`. Set when the fleet is created and never changed. Read-only. |

## FleetApps {#fleetapps}

Fleet applications configuration. Legacy managed Kubernetes (`mk8s`) and mks2 are mutually exclusive: at most one of them may be 'enabled' on the same fleet.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `mk8s` | string | No | Enable or disable legacy managed Kubernetes for this fleet. Mutually exclusive with mks2. One of: `enabled`, `disabled`. |
| `mks2` | string | No | Enable or disable managed Kubernetes for this fleet. Mutually exclusive with mk8s. One of: `enabled`, `disabled`. |
| `slurm` | string | No | Enable or disable Slurm for this fleet One of: `enabled`, `disabled`. |
| `mk8sCluster` | [FleetAppsMksCluster](/docs/platform/cluster/api-reference/schemas.md#fleetappsmkscluster) | No | Legacy managed Kubernetes cluster information (only present when mk8s is enabled) |
| `mks2Cluster` | [FleetAppsMks2Cluster](/docs/platform/cluster/api-reference/schemas.md#fleetappsmks2cluster) | No | Managed Kubernetes cluster information (only present when mks2 is enabled) |
| `slurmParameters` | [SlurmParameters](/docs/platform/cluster/api-reference/schemas.md#slurmparameters) | No | Slurm configuration (only present when slurm is enabled) |

## FleetAppsMks2Cluster {#fleetappsmks2cluster}

Managed Kubernetes cluster information for this fleet. Sensitive fields (kubeconfig) are intentionally not surfaced here; they are fetched via a separate endpoint.

Atomic populate-or-omit: when this object is present in a fleet response, every field is populated from a successful live cluster lookup. If managed Kubernetes is unreachable, this object is omitted from the parent applications object entirely - the response then has no mks2Cluster key at all. Clients should treat absent and present-but-incomplete as the same state (cluster details unavailable).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `clusterId` | string | Yes | Managed Kubernetes cluster ID (stable across enrichment results) |
| `clusterName` | string | Yes | Managed Kubernetes cluster name as reported by managed Kubernetes |
| `kubernetesVersion` | string | Yes | Kubernetes version running on the cluster (e.g. v1.35.0) |
| `clusterStatus` | string | Yes | Live cluster status reported by managed Kubernetes (lowercase). One of: `creating`, `ready`, `failed`, `degraded`, `updating`, `deleting`. |
| `controlPlaneReplicas` | integer | Yes | Desired number of control plane replicas |
| `controlPlaneSize` | string | No | Control plane resource tier, which determines the CPU and memory allocated to the Kubernetes API server. Omitted while the cluster's control plane is still being provisioned. One of: `small`, `medium`, `large`, `xlarge`, `xxlarge`. |
| `datastoreType` | string | No | Whether the cluster runs on shared multi-tenant etcd or its own dedicated etcd cluster. Omitted when the cluster's etcd configuration is temporarily unavailable. One of: `shared`, `dedicated`. |
| `nvidiaDriverVersion` | string | Yes | NVIDIA driver version installed via the GPU operator |
| `createdAt` | string (date-time) | Yes | Timestamp when the managed Kubernetes cluster was created |
| `nodeCounts` | [FleetAppsMks2NodeCounts](/docs/platform/cluster/api-reference/schemas.md#fleetappsmks2nodecounts) | Yes |  |

## FleetAppsMks2NodeCounts {#fleetappsmks2nodecounts}

Aggregate count summary of worker node status in the managed Kubernetes cluster. Mirrors the Kubernetes API. All counters are required to keep the parent FleetAppsMks2Cluster atomic-or-absent.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `total` | integer | Yes | Total number of registered nodes |
| `ready` | integer | Yes | Nodes that are Ready in the Kubernetes sense |
| `notReady` | integer | Yes | Nodes that are registered but not Ready |
| `pending` | integer | Yes | Nodes registered but not yet joined to Kubernetes |

## FleetAppsMksCluster {#fleetappsmkscluster}

Legacy managed Kubernetes cluster information for this fleet

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `clusterId` | string | Yes | Legacy managed Kubernetes cluster ID |
| `clusterName` | string | Yes | Legacy managed Kubernetes cluster name |
| `kubernetesVersion` | string | No | Kubernetes version running on the cluster |
| `installationStatus` | string | Yes | Legacy managed Kubernetes installation status on the fleet One of: `CREATING`, `PROVISIONING`, `ACTIVE`, `ERROR`. |
| `clusterStatus` | string | No | Current legacy managed Kubernetes cluster status from Kubernetes API One of: `PENDING`, `PROVISIONING`, `READY`, `UPDATING`, `DEGRADED`, `FAILED`, `DELETING`, `TERMINATED`, `SHUTTING_DOWN`, `STARTING`, `STOPPED`. |
| `kubeconfig` | string | No | The kubeconfig for accessing the cluster (if available) |
| `serviceLinks` | [KubernetesServiceLinks](/docs/platform/cluster/api-reference/schemas.md#kubernetesservicelinks) | No |  |
| `controlPlaneNodeCount` | integer | No | Number of control plane nodes |
| `readyControlPlaneNodeCount` | integer, nullable | No | Number of ready control plane nodes |
| `workerNodeCount` | integer, nullable | No | Number of worker nodes |
| `readyWorkerNodeCount` | integer, nullable | No | Number of ready worker nodes |
| `addons` | array of string | No | List of installed addons |
| `createdAt` | string | No | Timestamp when the cluster was created |

## FleetComputeFootprint {#fleetcomputefootprint}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `gpuNodes` | [FleetNodeSpec](/docs/platform/cluster/api-reference/schemas.md#fleetnodespec) | Yes |  |

## FleetHealthResponse {#fleethealthresponse}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleetId` | string | Yes | Unique identifier for the fleet |
| `status` | string | No | Overall health status of the fleet One of: `healthy`, `unhealthy`, `degraded`, `unknown`. |
| `kubernetes_health` | object | No | Legacy managed Kubernetes cluster health information |
| `node_health` | array of [NodeHealth](/docs/platform/cluster/api-reference/schemas.md#nodehealth) | No | Health information for each node in the fleet |

## FleetHistoryEvent {#fleethistoryevent}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `orgId` | string | Yes | Organization ID |
| `fleetId` | string | Yes | Fleet ID |
| `source` | string | Yes | Source of the event, either `system` or `user`. One of: `system`, `user`. |
| `currentState` | string | Yes | Current state after this event |
| `previousState` | string | No | Previous state before this event |
| `eventTimestamp` | integer (int64) | Yes | Timestamp when the event occurred (milliseconds since epoch UTC) |
| `eventData` | map of string | No | Additional event-specific data |
| `createdAt` | integer (int64) | Yes | Timestamp when the record was created |
| `schemaVersion` | integer | Yes | Schema version |

## FleetHistoryResponse {#fleethistoryresponse}

Response containing fleet history events with optional pagination metadata

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleetId` | string | Yes | Unique identifier for the fleet |
| `events` | array of [FleetHistoryEvent](/docs/platform/cluster/api-reference/schemas.md#fleethistoryevent) | Yes | List of fleet history events, newest first |
| `nextToken` | string, nullable | No | Pagination token to retrieve the next page of results. Null when no more pages available. |

## FleetManagedBy {#fleetmanagedby}

A service whose controller owns a fleet's size. While a fleet has one, only that service can scale it.

Type: string. A service whose controller owns a fleet's size. While a fleet has one, only that service can scale it. One of: `MANAGED_KUBERNETES`.

## FleetNode {#fleetnode}

A node within a fleet (fleet_id not included as it's redundant in fleet context)

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeName` | string | Yes | Unique identifier for the node |
| `state` | [NodeState](/docs/platform/cluster/api-reference/schemas.md#nodestate) | Yes |  |
| `publicIp` | string | Yes | Public IP address of the node |
| `gpuType` | string | No | GPU model installed on this node. Not an enum: new hardware models must reach clients rather than break deserialization. Absent when the model is not known. |

## FleetNodeSpec {#fleetnodespec}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instanceType` | string | Yes | Server-derived compute instance type. `mixed` means the nodes have different GPU models; `unknown` means the hardware could not be determined. |
| `replicas` | integer | No | Number of replicas (deprecated: use nodes array instead) **Deprecated.** |
| `reserved_nodes` | array of string | No | List of reserved node identifiers (deprecated: use nodes array instead) **Deprecated.** |
| `nodes` | array of [FleetNode](/docs/platform/cluster/api-reference/schemas.md#fleetnode) | No | List of actual node details with IPs |

## FleetStatus {#fleetstatus}

Current status of the fleet

Type: string. Current status of the fleet One of: `ACTIVE`, `INACTIVE`, `PROVISIONING`, `SCALING_UP`, `SCALING_DOWN`, `DECOMMISSIONED`, `TERMINATING`, `TERMINATED`.

## GrafanaDashboardResponse {#grafanadashboardresponse}

Monitoring dashboard information for a fleet. Each dashboard provides real-time metrics and visualizations.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleetId` | string | Yes | Fleet identifier this dashboard monitors |
| `dashboardId` | string | Yes | Dashboard type identifier - different dashboards show different levels of detail |
| `dashboardUrl` | string (uri) | Yes | Direct link to view this dashboard in Grafana. Users sign in with single sign-on when opening the link. |
| `available` | boolean | Yes | Indicates if the dashboard can be accessed. `false` means the fleet is not in ACTIVE state or monitoring is temporarily disabled. |

## Infrastructure {#infrastructure}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `network` | [InfrastructureNetwork](/docs/platform/cluster/api-reference/schemas.md#infrastructurenetwork) | Yes |  |
| `vast` | array of [StorageConfig](/docs/platform/cluster/api-reference/schemas.md#storageconfig) | No | Storage configuration |

## InfrastructureNetwork {#infrastructurenetwork}

Network topology type

Type: string. Network topology type One of: `infiniband`, `ethernet`.

## KubeconfigV2Response {#kubeconfigv2response}

Time-limited kubeconfig credential for a managed Kubernetes cluster. Returned by the customer kubeconfig endpoint as a short-lived, customer-scoped credential; refetch before `expiresAt`.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `kubeconfig` | string | Yes | Complete kubeconfig YAML, ready to be written to disk and consumed by kubectl. Server URL points at the external cluster API endpoint. |
| `role` | string | Yes | Role this kubeconfig was generated for. Customer-scoped kubeconfigs return `customer`. |
| `expiresAt` | string (date-time) | Yes | Absolute time at which the kubeconfig stops working. Clients should refetch before this expires. |
| `ttlSeconds` | integer | Yes | Time-to-live in seconds from the moment the kubeconfig was generated. Convenience hint - prefer expiresAt for absolute scheduling. |

## KubernetesServiceLinks {#kubernetesservicelinks}

Links to Kubernetes cluster services

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `grafana` | string (uri) | No | URL to the Grafana dashboard for cluster monitoring |

## ListFleetsResponse {#listfleetsresponse}

Response containing a list of fleets with optional pagination metadata

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleets` | array of [Fleet](/docs/platform/cluster/api-reference/schemas.md#fleet) | Yes | Array of fleet objects |
| `nextToken` | string, nullable | No | Pagination token to retrieve the next page of results. Null when pagination not used or no more pages available. |
| `limit` | integer, nullable | No | Number of items requested per page. Null when pagination not used. Minimum: 1. Maximum: 100. |

## ListNodesResponse {#listnodesresponse}

Response containing a list of nodes with optional pagination metadata

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodes` | array of [Node](/docs/platform/cluster/api-reference/schemas.md#node) | Yes | List of nodes in the fleet |
| `nextToken` | string, nullable | No | Pagination token to retrieve the next page of results. Null when no more pages available. |
| `limit` | integer, nullable | No | Number of items requested per page. Null when pagination not used. Minimum: 1. Maximum: 100. |

## Mks2AddonsHealth {#mks2addonshealth}

Per-addon health monitors. Each sub-field is absent until its monitor is wired upstream; treat absence as no signal, not as healthy.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slurm` | [Mks2ComponentHealth](/docs/platform/cluster/api-reference/schemas.md#mks2componenthealth) | No |  |
| `prometheus` | [Mks2ComponentHealth](/docs/platform/cluster/api-reference/schemas.md#mks2componenthealth) | No |  |
| `efs` | [Mks2ComponentHealth](/docs/platform/cluster/api-reference/schemas.md#mks2componenthealth) | No |  |

## Mks2ClusterHealth {#mks2clusterhealth}

Comprehensive managed Kubernetes cluster health snapshot. Mirrors the Kubernetes API; `status` is the only required field (upstream always emits an overall health), every other field is optional and may be absent depending on which monitors have run. Consumers should treat missing fields as 'no signal' rather than 'healthy'.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `status` | [Mks2HealthStatus](/docs/platform/cluster/api-reference/schemas.md#mks2healthstatus) | Yes |  |
| `controlPlane` | [Mks2ControlPlaneHealth](/docs/platform/cluster/api-reference/schemas.md#mks2controlplanehealth) | No |  |
| `nodes` | array of [Mks2NodeHealth](/docs/platform/cluster/api-reference/schemas.md#mks2nodehealth) | No | Per-worker-node health entries. Always worker-side; control-plane health lives in the controlPlane field above. |
| `network` | [Mks2NetworkHealth](/docs/platform/cluster/api-reference/schemas.md#mks2networkhealth) | No |  |
| `addons` | [Mks2AddonsHealth](/docs/platform/cluster/api-reference/schemas.md#mks2addonshealth) | No |  |
| `lastUpdated` | string (date-time) | No | When the upstream health-collector last produced this snapshot. Absent if the collector has not run yet. |
| `lastHealthyAt` | string (date-time) | No | Last time the cluster overall reported healthy. |

## Mks2ComponentHealth {#mks2componenthealth}

Health for a single named component (e.g. Cilium, konnectivity, an addon). Every field is optional. `reason` is human-readable diagnostic text - do not match programmatically. `lastHealthyAt` is the last time the component reported healthy; `lastUpdated` is when the most recent observation was made (regardless of whether it was healthy).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `status` | [Mks2HealthStatus](/docs/platform/cluster/api-reference/schemas.md#mks2healthstatus) | No |  |
| `reason` | string | No | Human-readable status detail; not stable for programmatic matching. |
| `lastUpdated` | string (date-time) | No | When this component's status was last observed. |
| `lastHealthyAt` | string (date-time) | No | Last timestamp at which this component reported healthy. Absent if upstream did not include it. |

## Mks2ControlPlaneHealth {#mks2controlplanehealth}

Health of the cluster's control plane (managed Kubernetes tenant-cluster API server + controller-manager + scheduler). Replicas and readyReplicas reflect the live observed counts when published, falling back to the desired count from the spec when no observed status is available yet.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `status` | [Mks2HealthStatus](/docs/platform/cluster/api-reference/schemas.md#mks2healthstatus) | No |  |
| `replicas` | integer | No | Total control-plane replicas (observed if available, else desired). |
| `readyReplicas` | integer | No | Number of control-plane replicas currently Ready. |
| `reason` | string | No | Human-readable detail; populated when degraded/unhealthy. |
| `lastUpdated` | string (date-time) | No | When the control plane's status was last observed. |

## Mks2CordonNodeResponse {#mks2cordonnoderesponse}

Result of a cordon or uncordon operation. `schedulable` reflects the node's scheduling state after the operation (false after cordon, true after uncordon).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeId` | string | Yes | Managed Kubernetes worker-node identifier (registry id) the operation targeted. |
| `schedulable` | boolean | Yes | Whether pods can be scheduled on the node after the operation. false after cordon, true after uncordon. |
| `message` | string | No | Human-readable status message describing the result, when available. |

## Mks2DrainNodeRequest {#mks2drainnoderequest}

Optional tuning for a node drain. Every field is optional; omit the body (or any field) to use the defaults below. These defaults are owned and applied by the API, so an omitted, empty ({}), or partial body all behave identically.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `gracePeriodSeconds` | integer (int32) | No | Grace period (seconds) granted to evicted pods before they are forcibly terminated. Maps to the eviction grace period. Default: `30`. |
| `deleteLocalData` | boolean | No | Whether to evict pods backed by emptyDir / local storage (their data is lost). Not currently honored; accepted for forward compatibility and has no effect yet. Default: `false`. |
| `ignoreDaemonSets` | boolean | No | Whether to proceed with the drain even though DaemonSet-managed pods cannot be evicted (they are skipped). Default: `true`. |

## Mks2DrainNodeResponse {#mks2drainnoderesponse}

Result of a node drain. `evicted` and `failed` are included when reported.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeId` | string | Yes | Managed Kubernetes worker-node identifier (registry id) the drain targeted. |
| `evicted` | integer (int32) | No | Number of pods evicted from the node, when reported. |
| `failed` | array of string | No | Identifiers of pods that could not be evicted, when reported. |

## Mks2GpuInfo {#mks2gpuinfo}

GPU information for a managed Kubernetes worker node.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `count` | integer | No | Number of GPUs on the node. |
| `model` | string | No | GPU model name. |
| `driverVersion` | string | No | NVIDIA driver version. |
| `cudaRuntimeVersion` | string | No | CUDA runtime version. |
| `memory` | string | No | Total GPU memory per device in MiB. |
| `validated` | boolean | No | Whether GPU validation has passed for this node. |

## Mks2HealthStatus {#mks2healthstatus}

Health state for any managed Kubernetes component, node, or the cluster overall. `healthy` = all observed signals are nominal; `degraded` = partial functionality, some signals failing; `unhealthy` = no usable functionality from this component; `stopped` = intentionally scaled to zero (e.g. control plane replicas == 0); `unknown` = no signal available yet (probe pending, monitor not wired, etc.).

Type: string. Health state for any managed Kubernetes component, node, or the cluster overall. `healthy` = all observed signals are nominal; `degraded` = partial functionality, some signals failing; `unhealthy` = no usable functionality from this component; `stopped` = intentionally scaled to zero (e.g. control plane replicas == 0); `unknown` = no signal available yet (probe pending, monitor not wired, etc.). One of: `healthy`, `degraded`, `unhealthy`, `stopped`, `unknown`.

## Mks2NetworkHealth {#mks2networkhealth}

Health of the cluster's networking layer. cilium covers the CNI; konnectivity covers API-server-to-worker connectivity. Both are absent until their respective monitors are wired upstream - treat absence as no signal, not as healthy.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cilium` | [Mks2ComponentHealth](/docs/platform/cluster/api-reference/schemas.md#mks2componenthealth) | No |  |
| `konnectivity` | [Mks2ComponentHealth](/docs/platform/cluster/api-reference/schemas.md#mks2componenthealth) | No |  |

## Mks2NodeAlertSuppression {#mks2nodealertsuppression}

The node's `MaintenanceWindow` condition, which pauses per-node health alerts for the node until `until`. It opens when maintenance is declared through the platform API, closes when that maintenance is ended, and otherwise expires on its own. Absent when the node has no such condition.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `active` | boolean | Yes | Whether alerts are paused now: the condition is True and `until` is in the future. |
| `reason` | string | No | Category of the caller that opened the window, as recorded on the node, for example `OnCall` for an on-call engineer. |
| `openedBy` | string | No | Audit identity recorded for the window, as `<service>/<user>` where the user is known. |
| `since` | string (date-time) | No | When the window started. |
| `until` | string (date-time) | No | When the window ends, or ended. |

## Mks2NodeCondition {#mks2nodecondition}

A single condition on a managed Kubernetes worker node. Reported from the node's Kubernetes status; includes standard Kubernetes node conditions (Ready, MemoryPressure, DiskPressure, PIDPressure, NetworkUnavailable) and additional GPU/health conditions (e.g. GPUValidated).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `type` | string | No | Condition type (e.g. Ready, MemoryPressure, DiskPressure, PIDPressure, NetworkUnavailable, GPUValidated). |
| `status` | string | No | Condition status. One of True, False, Unknown. |
| `reason` | string | No | Machine-readable reason for the condition's last transition. |
| `message` | string | No | Human-readable message describing the condition. |
| `lastTransitionTime` | string (date-time) | No | When the condition last transitioned. |

## Mks2NodeHealth {#mks2nodehealth}

Per-worker-node health snapshot. Identifier is the managed Kubernetes registry id; the upstream service intentionally does not expose Kubernetes node names or full conditions maps here - per-node detail belongs in the dedicated nodes endpoint.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | No | Managed Kubernetes node identifier (registry ID). |
| `status` | [Mks2HealthStatus](/docs/platform/cluster/api-reference/schemas.md#mks2healthstatus) | No |  |
| `reason` | string | No | Human-readable detail; not stable for programmatic matching. |
| `lastUpdated` | string (date-time) | No | When this node's health was last observed. |
| `lastHealthyAt` | string (date-time) | No | Last time this node reported healthy. |

## Mks2NodeMaintenance {#mks2nodemaintenance}

Maintenance state of the node, read from the live Kubernetes node on every request. The `voltagepark.io/maintenance` taint keeps new pods off the node, and the `MaintenanceWindow` node condition pauses per-node health alerts. Changes made outside this API (kubectl, automation, a hold expiring) show up on the next read.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `active` | boolean | Yes | Whether a maintenance taint holds the node now: one is present and either has no end time or ends in the future. An expired taint is reported as inactive even while it waits to be removed. |
| `kind` | string | No | What holds the node. `timed` ends at `until` and is removed automatically after it expires. `indefinite` has no end time and stays until someone removes it, for example a taint applied with `kubectl taint node <node> voltagepark.io/maintenance=true:NoSchedule`. `validationHold` keeps a newly joined node out of service until it passes GPU validation. When the node carries more than one maintenance taint, the one in force is reported, preferring `validationHold`, then `indefinite`, then the `timed` one that ends last. Absent when the node carries no maintenance taint. One of: `timed`, `indefinite`, `validationHold`. |
| `effect` | string | No | Effect of the reported maintenance taint. Absent when the node carries no maintenance taint. One of: `NoSchedule`, `PreferNoSchedule`. |
| `until` | string (date-time) | No | When a `timed` hold ends. A time in the past means the hold has expired and is waiting to be removed. |
| `alertSuppression` | [Mks2NodeAlertSuppression](/docs/platform/cluster/api-reference/schemas.md#mks2nodealertsuppression) | No |  |

## Mks2NodeTaint {#mks2nodetaint}

A taint on a live Kubernetes node (from the Kubernetes node spec). Identity is key+effect.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `key` | string | Yes | Taint key. Maintenance uses voltagepark.io/maintenance. |
| `value` | string | No | Optional taint value. For `voltagepark.io/maintenance`, a value written through the managed Kubernetes node-taint API is the hold's end time in Unix seconds, and `true` means no end time. |
| `effect` | string | Yes | Taint effect. NoExecute is not exposed on the API write path. One of: `NoSchedule`, `PreferNoSchedule`. |

## Mks2WorkerNodeDetail {#mks2workernodedetail}

Full managed Kubernetes worker-node detail: a superset of the list summary (Mks2WorkerNode) that adds per-node conditions, GPU info, labels/annotations, registration timestamps, and a live drain observation. Unlike the list (which only includes joined nodes), the per-node detail endpoint also resolves nodes that are registered but not yet joined. `gpuValidated` is a convenience mirror of `gpu.validated`.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | Yes | Managed Kubernetes worker-node identifier (registry id). Stable for the lifetime of the registry entry. |
| `name` | string | No | Kubernetes node name. Absent until the node has joined the cluster. |
| `registrationStatus` | [Mks2WorkerNodeRegistrationStatus](/docs/platform/cluster/api-reference/schemas.md#mks2workernoderegistrationstatus) | Yes |  |
| `kubernetesStatus` | [Mks2WorkerNodeKubernetesStatus](/docs/platform/cluster/api-reference/schemas.md#mks2workernodekubernetesstatus) | No |  |
| `schedulable` | boolean | No | Whether pods can be scheduled on this node (i.e. uncordoned). Absent when the node has not joined yet. |
| `drained` | boolean | No | Live Kubernetes control-plane observation of whether workloads have drained from this node. True when every Pod currently bound to the node is terminal, a mirror Pod, or owned by a live DaemonSet. False when any other Pod remains. Omitted before the node joins or when the tenant cluster cannot be fully observed. This field is independent from `schedulable`; callers preparing maintenance must also verify the node is cordoned. The observation is point-in-time and does not prove that no out-of-band process is running on the host. Read-only. |
| `gpuValidated` | boolean | No | Whether managed Kubernetes has run GPU validation against this node and it passed. Convenience mirror of gpu.validated; absent when no GPU info is available. |
| `conditions` | array of [Mks2NodeCondition](/docs/platform/cluster/api-reference/schemas.md#mks2nodecondition) | No | Node conditions passed through from the tenant Kubernetes node, including custom node conditions. Absent until the node has joined. |
| `gpu` | [Mks2GpuInfo](/docs/platform/cluster/api-reference/schemas.md#mks2gpuinfo) | No |  |
| `registeredAt` | string (date-time) | No | When the node was added to the managed Kubernetes worker registry. |
| `joinedAt` | string (date-time), nullable | No | When the node joined the Kubernetes cluster. Null/absent for registered-but-not-yet-joined nodes. |
| `labels` | map of string | No | Kubernetes node labels. Absent until the node has joined. |
| `annotations` | map of string | No | Kubernetes node annotations. Absent until the node has joined. |
| `publicIp` | string | No | Public IPv4 address of the node, used for source-IP-based request routing. Absent when the node was registered without a public IP. |
| `taints` | array of [Mks2NodeTaint](/docs/platform/cluster/api-reference/schemas.md#mks2nodetaint) | No | Live Kubernetes node taints. Absent until the node has joined. |
| `maintenance` | [Mks2NodeMaintenance](/docs/platform/cluster/api-reference/schemas.md#mks2nodemaintenance) | No | Maintenance state derived from the node's live taints and conditions. Absent until the node has joined the cluster. |

## Mks2WorkerNodeKubernetesStatus {#mks2workernodekubernetesstatus}

Kubernetes node status (only set when `registrationStatus = joined`). Mirrors the Kubernetes API.

Type: string. Kubernetes node status (only set when `registrationStatus = joined`). Mirrors the Kubernetes API. One of: `Ready`, `NotReady`, `Unknown`.

## Mks2WorkerNodeRegistrationStatus {#mks2workernoderegistrationstatus}

Managed Kubernetes node registration status. `registered` means the node is in the managed Kubernetes worker registry but has not yet completed bootstrap; `joined` means the node has bootstrapped and joined the Kubernetes cluster. Mirrors the Kubernetes API.

Type: string. Managed Kubernetes node registration status. `registered` means the node is in the managed Kubernetes worker registry but has not yet completed bootstrap; `joined` means the node has bootstrapped and joined the Kubernetes cluster. Mirrors the Kubernetes API. One of: `registered`, `joined`.

## ModifyStorageRequest {#modifystoragerequest}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `storageViews` | array of object | Yes | List of storage views to modify. Must match the existing storage configuration: same number of items and same mount points. Only the size values can be changed. Minimum items: 1. |
| `storageViews[].mountPoint` | string | Yes | Mount point for the storage view (e.g., '/data', '/home') |
| `storageViews[].size` | integer (int64) | Yes | Storage size in bytes (maximum: 1PB = 1,125,899,906,842,624 bytes) Minimum: 1. Maximum: 1125899906842624. |

## ModifyStorageResponse {#modifystorageresponse}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fleetId` | string | Yes | Unique identifier for the fleet |
| `status` | string | Yes | Status of the storage modification operation |
| `message` | string | Yes | Descriptive message about the operation |

## Node {#node}

A node represents an individual compute instance within a fleet

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeName` | string | Yes | Unique identifier for the node |
| `state` | [NodeState](/docs/platform/cluster/api-reference/schemas.md#nodestate) | Yes |  |
| `publicIp` | string | Yes | Public IP address of the node |
| `fleetId` | string | No | Fleet ID associated with the node, if any |
| `gpuType` | string | No | GPU model installed on this node. Not an enum: new hardware models must reach clients rather than break deserialization. Absent when the model is not known. |

## NodeDetails {#nodedetails}

Consolidated single-node details for the node-details page. Composes base physical-node fields (publicIp only), advisory powerActionReadiness, and optional managedServices. Power readiness checks cluster join, cordon, and drain state. Existing list/detail endpoints are unchanged.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeName` | string | Yes | Unique identifier for the node (cluster registry id). |
| `state` | [NodeState](/docs/platform/cluster/api-reference/schemas.md#nodestate) | Yes |  |
| `publicIp` | string | Yes | Public IP address of the node |
| `fleetId` | string | No | Fleet ID associated with the node, if any |
| `powerActionReadiness` | [PowerActionReadiness](/docs/platform/cluster/api-reference/schemas.md#poweractionreadiness) | Yes | Customer readiness policy. Joined-node blockers use `Before continuing, ensure the node is cordoned and fully drained.` |
| `managedServices` | [NodeManagedServices](/docs/platform/cluster/api-reference/schemas.md#nodemanagedservices) | No | Omitted when no managed service resolves. |

## NodeHealth {#nodehealth}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeId` | string | Yes | Unique identifier for the node |
| `status` | string | Yes | Health status of the node One of: `healthy`, `unhealthy`, `degraded`, `unknown`. |
| `lastUpdatedAt` | integer | Yes | Timestamp when the node health was last updated (milliseconds since epoch UTC) |

## NodeManagedServices {#nodemanagedservices}

Managed-service overlays for this physical node. Omit the entire object when no managed service resolves (e.g. non-Kubernetes fleet or name-lookup miss).

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `kubernetes` | [Mks2WorkerNodeDetail](/docs/platform/cluster/api-reference/schemas.md#mks2workernodedetail) | No | Managed Kubernetes worker-node detail when this node is registered in the fleet's cluster. |

## NodePowerLastOperation {#nodepowerlastoperation}

Most recent power operation for the node.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `operationId` | string | Yes | Operation identifier. |
| `resetType` | string | Yes | Reset type requested. |
| `status` | string | Yes | Current operation status. ACCEPTED = request received, execution not started. IN_PROGRESS = execution underway, result not yet known. One of: `ACCEPTED`, `IN_PROGRESS`, `SUCCESS`, `FAILURE`, `TIMED_OUT`. |
| `queuedAt` | integer (int64) | Yes | Unix millis when the operation was queued. |
| `completedAt` | integer (int64), nullable | No | Unix millis when the operation completed. Null if non-terminal. |
| `error` | [NodePowerOperationError](/docs/platform/cluster/api-reference/schemas.md#nodepoweroperationerror) | No |  |

## NodePowerOperation {#nodepoweroperation}

Requests a power transition on a node. Valid transitions depend on the node's current power state (e.g. `On` is only valid when the node is off). All reset types require the Administrator role.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `resetType` | string | Yes | Power action to apply. `On` powers the node on. `ForceOff` cuts power immediately and leaves the node off. `GracefulShutdown` requests an OS shutdown and leaves the node off. `ForceRestart` reboots immediately. One of: `On`, `ForceOff`, `GracefulShutdown`, `ForceRestart`. |

## NodePowerOperationError {#nodepoweroperationerror}

Error details on FAILURE or TIMED_OUT. Null on success or non-terminal.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `code` | string | Yes | Machine-readable error code. |
| `message` | string | Yes | Human-readable error description. |
| `resetIssued` | string | Yes | Whether the reset command was actually sent to the hardware. One of: `yes`, `no`, `unknown`. |

## NodePowerOperationQueued {#nodepoweroperationqueued}

Confirmation that a power operation was accepted and queued. The operation is asynchronous - use `operationId` to track operation status via GET.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeId` | string | Yes | Node identifier. |
| `resetType` | string | Yes | Power action that was queued. One of `On`, `ForceOff`, `GracefulShutdown`, or `ForceRestart`. One of: `On`, `ForceOff`, `GracefulShutdown`, `ForceRestart`. |
| `powerStateBefore` | string | Yes | The node's power state, read immediately before the operation was queued. |
| `status` | string | Yes | Queue status for the requested operation. |
| `operationId` | string | Yes | Unique identifier for the power operation. Use this to track operation status via GET. |

## NodePowerState {#nodepowerstate}

Eventually consistent power state for a node. powerState is the last confirmed value and can lag the hardware while a power operation is in progress, or until the confirmation is older than 5 minutes. lastOperation shows the status of the most recent power operation.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nodeId` | string | Yes | Node identifier. |
| `powerState` | string | Yes | Last confirmed power state. Eventually consistent: it can lag the hardware while a power operation is in progress, and it is refreshed from the hardware when the confirmation is older than 5 minutes. |
| `lastOperation` | [NodePowerLastOperation](/docs/platform/cluster/api-reference/schemas.md#nodepowerlastoperation) | No |  |

## NodeState {#nodestate}

Current lifecycle state of a physical / fleet node.

Type: string. Current lifecycle state of a physical / fleet node. One of: `ACTIVE`, `BASELINING`, `CONFIGURING`, `CONTRACTING`, `FAILED_PROVISIONING`, `ONBOARDING`, `PROVISIONING`, `READY`, `TERMINATED`, `TERMINATING`, `TESTING`, `UNHEALTHY`, `VALIDATION`.

## OsConfig {#osconfig}

Declarative, intent-based OS tuning applied to the operating system of every node in the fleet. Each capability is requested by name; the API owns the known-good translation to node-level configuration and re-applies it on scale-up so new nodes inherit the same tuning. All capabilities are optional; omit the whole object to keep node OS defaults.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cpuProfiling` | string | No | Enable non-root, system-wide CPU profiling on every node (e.g. `perf top`, `perf stat -a`). When enabled, the API applies the required node kernel settings automatically. Defaults to disabled. One of: `enabled`, `disabled`. |
| `gpuProfiling` | string | No | Enable non-root GPU performance-counter profiling on every node (e.g. NVIDIA Nsight Compute `ncu`). When enabled, the API applies the required NVIDIA driver settings automatically. The profiler itself must already be present in the node image; the API only grants access to the counters. Only for fleets without managed Kubernetes: on managed Kubernetes the NVIDIA driver is managed by the GPU operator rather than by node startup configuration, so enabling it there is rejected. Defaults to disabled. One of: `enabled`, `disabled`. |

## PowerActionReadiness {#poweractionreadiness}

Advisory readiness for disruptive power actions (ForceOff, GracefulShutdown, ForceRestart, GracefulRestart). Power On from Off is never gated by this object. `ready` means the API found no known blocker; warnings do not change readiness. The policy and user-facing copy are selected by API plane, while machine-readable blocker and warning codes remain internal for structured logging. Clients should not re-derive readiness from registrationStatus, schedulable, taints, or drained.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ready` | boolean | Yes | True when the API found no known blocker. A non-empty warningMessage remains advisory and does not change this value. |
| `blockerMessage` | string | Yes | Empty when ready. Otherwise contains the backend-owned, plane-appropriate explanation for the active blocker. Clients should display this complete sentence without parsing it. |
| `warningMessage` | string | Yes | Empty when there are no warnings. The API composes active warning messages as complete sentences in deterministic order. Warnings are advisory and do not change ready. |

## PublicKeyEntry {#publickeyentry}

A single SSH public key with metadata

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fingerprint` | string | No | SHA256 fingerprint of the public key |
| `key` | string | No | SSH public key in OpenSSH format |
| `keyType` | string | No | SSH key algorithm type One of: `ssh-rsa`, `ssh-ed25519`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, `sk-ssh-ed25519@openssh.com`, `sk-ecdsa-sha2-nistp256@openssh.com`. |
| `description` | string | No | Optional description for this key |
| `addedAt` | integer (int64) | No | When this key was added (Unix milliseconds) |

## RemoveFleetSSHKeyResponse {#removefleetsshkeyresponse}

Acknowledgement that key revocation was accepted.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `message` | string | Yes | Human-readable outcome of the request. |
| `nodeCount` | integer | Yes | Number of already-provisioned nodes the keys will be removed from. Zero means the fleet has no running nodes yet. |

## SlurmParameters {#slurmparameters}

Configuration parameters for SLURM addon

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sshKeys` | array of object | Yes | SSH user configurations with multiple keys per user Minimum items: 1. |
| `sshKeys[].name` | string | Yes | Username for SSH access Minimum length: 1. Maximum length: 32. |
| `sshKeys[].keys` | array of string | Yes | List of SSH public keys for this user Minimum items: 1. Maximum items: 10. |
| `externalStorage` | [ExternalStorageConfig](/docs/platform/cluster/api-reference/schemas.md#externalstorageconfig) | Yes | External storage configuration for SLURM |
| `controlPlaneNodes` | array of string | No | Node IDs of the Slurm control-plane nodes. These nodes are labeled with slurm.voltagepark.io/node-role=control-plane before activating the Helm chart. Install-only — optional at fleet creation; ignored if empty. |
| `controlPlanePlacement` | string | No | Whether the control-plane nodes also run Slurm jobs. shared: they run a worker too, so one GPU node is a complete Slurm cluster; give 1 or 2 controlPlaneNodes (when omitted, the first GPU node not listed in loginNodes, or the first GPU node if all are). dedicated: they run only Slurm's controllers, and at least one GPU node must remain a worker. When omitted: dedicated if controlPlaneNodes is set, otherwise shared. One of: `shared`, `dedicated`. |
| `slurmVersion` | string | No | Slurm major version to install: 24 or 26. When omitted, the default applies: Slurm 26 wherever it is available, otherwise Slurm 24. Slurm 24 is not available on arm64 (GB300) nodes, so asking for it there is rejected. It applies at install: a fleet on Slurm 24 can later be upgraded in place to Slurm 26 from its Slurm tab, which updates this value. One of: `24`, `26`. |
| `loginNodes` | array of string | No | Node IDs of the Slurm login nodes. These nodes are labeled with slurm.voltagepark.io/login-node=true. Kept separate from controlPlaneNodes so a rogue login pod cannot disrupt slurmctld/slurmdbd. |

## SSHKey {#sshkey}

A user's SSH access record with multiple public keys

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sshKeyId` | string (uuid) | No | Unique identifier for this record |
| `username` | string | No | Linux username for SSH access and cloud-init |
| `publicKeys` | array of [PublicKeyEntry](/docs/platform/cluster/api-reference/schemas.md#publickeyentry) | No | List of SSH public keys for this user |
| `createdAt` | integer (int64) | No | Creation timestamp (Unix milliseconds) |

## StorageConfig {#storageconfig}

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `mountPoint` | string | Yes | Mount point for storage |
| `size` | integer (int64) | Yes | Storage size in bytes Minimum: 1. |

## StorageProtectionPolicy {#storageprotectionpolicy}

Optional snapshot protection policy applied when first provisioning a storage view.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `startAt` | string (date-time) | No | ISO 8601 datetime to start the protection policy. |
| `every` | string | No | Snapshot frequency (e.g., '15m' for every 15 minutes). |
| `keepLocal` | string | No | Duration to keep local snapshots (e.g., '10h'). |
| `keepRemote` | string | No | Duration to keep remote snapshots (e.g., '0s' for none). |

## StorageView {#storageview}

The API's typed view of a single physical VAST storage view (a mount point and its quotas). Sizes are in bytes; the storage backend wire format is not exposed to callers.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `mountPoint` | string | Yes | Mount point for the storage view (e.g., '/data', '/home'). |
| `size` | integer (int64), nullable | No | Provisioned size in bytes. |
| `softLimit` | integer (int64), nullable | No | Soft quota in bytes, when set. |
| `hardLimit` | integer (int64), nullable | No | Hard quota in bytes, when set. |
| `state` | string | No | Lifecycle state of the storage view on the backing VAST tenant. Callers should treat `active` as the only "ready to use" state; `provisioning` and `modifying` are transient and callers that just issued a 202 add/update should poll `GET .../storage/views/{view}` until `state == "active"` (or `unhealthy` to fail fast). The `terminating` state is observable when a delete is in progress or during fleet teardown. The field is optional and will be **absent** from the response for three reasons: (1) the upstream response omitted it (older deployments); (2) the storage backend returned a lifecycle value the API does not recognize (forward-compatibility with future upstream enum members — the raw value is captured in the API logs); (3) the PATCH refresh-GET failed and the API fell back to a synthesized response body. In all three cases callers should treat an absent `state` as "unknown, please re-GET". Additional caveat: on a POST 202 response served via idempotency-key replay, `state` reflects the original request's timepoint (typically `provisioning`), not the current lifecycle state; re-`GET` to obtain authoritative state. One of: `provisioning`, `modifying`, `active`, `terminating`, `unhealthy`. |

## StorageViewListResponse {#storageviewlistresponse}

The set of physical VAST storage views for a fleet.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `items` | array of [StorageView](/docs/platform/cluster/api-reference/schemas.md#storageview) | Yes | Storage views. Empty array (not null) when none are provisioned. |
| `storagePending` | boolean | No | True when the fleet exists but its storage has not been materialized yet; in that case `items` is always empty. Omitted (or false) once storage is available. |

## UpdateStorageViewRequest {#updatestorageviewrequest}

Request to update the size/quotas of an existing physical VAST storage view. The mount point is taken from the URL path. At least one of `size`, `hardLimit`, `softLimit` is required. Accepted quota shapes: (1) `size` alone, (2) `hardLimit` alone (treated as an alias for `size`; the soft quota is then reset to 90% automatically), or (3) `softLimit`+`hardLimit` together (or `softLimit`+`size`, since `size` and `hardLimit` are aliases). `softLimit` on its own is rejected. If both `size` and `hardLimit` are supplied they must be equal.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `size` | integer (int64) | No | New provisioned size in bytes. Must be a positive multiple of 1 MiB (1048576 bytes). May be supplied on its own (resets the soft quota to 90% of size); when supplied together with `hardLimit`, the two must be equal. Minimum: 1048576. |
| `softLimit` | integer (int64) | No | New soft quota in bytes. Must be a positive multiple of 1 MiB (1048576 bytes) and less than or equal to the hard quota. Must be supplied together with `hardLimit` (or with `size` acting as the hard quota). Minimum: 1048576. |
| `hardLimit` | integer (int64) | No | New hard quota in bytes. Must be a positive multiple of 1 MiB (1048576 bytes). May be supplied on its own (treated as an alias for `size`; the soft quota is then reset to 90% automatically) or together with `softLimit`. When supplied together with `size`, the two must be equal. Minimum: 1048576. |

---

**Navigation**

- Parent: [API reference](/docs/platform/cluster/api-reference.md)
