EndpointsCreate a node pool

Node pools

Create a node pool

Hosted Clusters. Creates node_count Machines of machine_type in the Cluster’s Region, each joined as a node, and returns the creation Operation; it succeeds once every node is ready. Machine creation needs an active billing account; the first cx23 of a person is the free trial. An unknown machine type or location is refused here (400, 422). Billing, quota and provider refusals fail the Operation instead: error.reason is billing-required, quota-exceeded, service-disabled or provider-refused, and error.message says what to do. Adding one Akua server is a pool of size 1.

POST/clusters/{id}/node_pools
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

idstringrequired

Cluster ID

Required string length: 3 - 54

node_pool_idstringrequired

A DNS label of at most 40 characters, unique in the Cluster. Every node of the pool carries it as the label akua.dev/node-pool.

Pattern: ^[a-z](?:[-a-z0-9]{0,38}[a-z0-9])?$

Example: "default"

Body

application/json
machine_typestringrequired

Server type Akua orders for each node, in the Cluster’s Region. The free trial covers one cx23.

Pattern: ^[a-z][a-z0-9-]{0,31}$

Example: "cx23"

node_countintegerrequired

Number of nodes the pool keeps, 0 to 10 at launch.

Required range: 0 <= x <= 10

locationsstring[]

Where the pool places its Machines in the Cluster’s Region; empty lets Akua choose. One location at launch.

Maximum array length: 1 element

imageenum<string>default:ubuntu-24.04

Available options: ubuntu-24.04

labelsrecord<string, string>

Maximum object length: 32 entries

Key pattern: ^(?:[a-z0-9](?:[-a-z0-9.]{0,251}[a-z0-9])?\/)?[A-Za-z0-9](?:[-A-Za-z0-9_.]{0,61}[A-Za-z0-9])?$

Example: {"workload-class":"web"}

Response

application/json

Node pool creation accepted

idstringrequired

Required string length: 2 - 192

workspace_idstring | nullrequired

Required string length: 1 - 53

organization_idstring | nullrequired

Required string length: 1 - 54

owner_typeenum<string>required

Domain entity collection the operation acts on.

Available options: install, repository_change_request, repository, workspace, machine, cluster, node_pool, package, sandbox, opencode

owner_idstringrequired

Prefixed ID of the entity this operation acts on. Prefix matches owner_type (ws_, mch_, clu_, pkg_, inst_, rcr_, repo_, sbx_, oc_); a node pool is clu_<id>/node_pools/<node pool id>.

parent_operation_idstring | nullrequired

ID of the chained parent operation, when present.

Required string length: 2 - 192

stateenum<string>required

Lifecycle state. Past-participle terminal states per AIP-216.

Available options: RUNNING, SUCCEEDED, FAILED, CANCELLED

donebooleanrequired

True iff state is a terminal value.

html_urlstring<uri>required

Deep link to the dashboard view of this operation's owning resource when available, otherwise the operation detail page.

Maximum string length: 2048

Example: "https://akua.dev/installs/inst_j572abc123def456?tab=operations"

metadataobjectrequired
metadata.typeenum<string>required

Available options: node_pool.create, node_pool.set_size, node_pool.delete

metadata.workspace_idstringrequired

Required string length: 1 - 53

metadata.cluster_idstringrequired

Required string length: 1 - 54

metadata.node_pool_idstringrequired

Required string length: 1 - 40

metadata.node_countinteger | nullrequired

The size the Operation moves the pool to; null for a deletion.

responseobject | nullrequired

Populated only when done && state === "SUCCEEDED". Discriminated by type.

response.typeenum<string>required

Available options: node_pool.create, node_pool.set_size, node_pool.delete

response.cluster_idstringrequired

Required string length: 1 - 54

response.node_pool_idstringrequired

Required string length: 1 - 40

errorobject | nullrequired

Populated when state is FAILED or CANCELLED.

child attributes
error.codeinteger
error.messagestringrequired

Why it failed, stable for clients to branch on. Node pool and Machine creates use billing-required, quota-exceeded, service-disabled, capacity-unavailable, provider-refused, provider-unavailable and abandoned; most Operations omit it.

Example: "billing-required"

Each precondition that failed, like google.rpc.PreconditionFailure. A Package version that fails with image-unresolvable lists every image it could not resolve.

child attributes
error.violations.typestringrequired

The kind of violation, stable for clients to branch on.

Example: "image-unresolvable"

What failed it, for image-unresolvable the image reference.

Example: "pkg.akua.dev/ws_xxx/images/ghcr-acme/web:1.2.3"

Why it failed, safe to show.

last_errorobject | nullrequired

Latest error from any failed step. Populated even mid-flight; cleared when the step succeeds on retry.

child attributes
started_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

completed_atinteger | nullrequired

Unix timestamp (seconds)

Required range: x >= 0

stepsobject[]
child attributes
steps.namestringrequired

User-visible milestone name.

steps.statusenum<string>required

Step lifecycle state.

Available options: pending, running, completed, failed, skipped

steps.execution_typeenum<string>required

Step execution kind. user/approval mean the workflow is blocked on a human action. Internal bookkeeping steps are filtered from public responses.

Available options: system, user, approval, skipped

steps.started_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

steps.completed_atinteger | nullrequired

Unix timestamp (seconds)

Required range: x >= 0

steps.error_messagestring | nullrequired
steps.retryablebooleanrequired
steps.skippablebooleanrequired