NodeRingsDocs

Create Virtual Machine

Create Virtual Machine on the NodeRings client API (POST /v1/virtual-machines).

POST
/v1/virtual-machines
Authorization<token>

Bearer token

In: header

X-Organization-ID<token>

Tenant or organization identifier

In: header

hostname?string
planId?string
regionId?string
distro?string

Distribution enum to find matching VM template. Required for OS-only create. When instant_app_id is set, may be omitted (derived from the Instant App) or must match.

Default"DISTRO_UNSPECIFIED"
Value in"DISTRO_UNSPECIFIED" | "DISTRO_UBUNTU_22_04" | "DISTRO_UBUNTU_24_04" | "DISTRO_UBUNTU_26_04" | "DISTRO_FEDORA_43" | "DISTRO_FEDORA_44" | "DISTRO_DEBIAN_12" | "DISTRO_DEBIAN_13" | "DISTRO_CENTOS_9" | "DISTRO_CENTOS_10" | "DISTRO_ROCKY_9" | "DISTRO_ROCKY_10" | "DISTRO_ALMALINUX_9" | "DISTRO_ALMALINUX_10"
tags?Tags for categorizing the virtual machine (e.g., "database", "webserver")
sshKeyIds?array<string>

SSH key IDs to use for VM access (one or more). Either user_data, ssh_key_ids, or password must be provided, but only one.

password?string

Password for VM access. Either user_data, ssh_key_ids, or password must be provided, but only one.

userData?string

User data for CloudInit. Either user_data, ssh_key_ids, password, or cloud_init_user_data_id must be provided, but only one.

cloudInitUserDataId?string

Saved client cloud-init user_data profile ID. Replaces provider user_data at VM create.

instantAppId?string

Platform Instant App ID. Replaces provider user_data. Mutually exclusive with user_data and cloud_init_user_data_id. Requires password or ssh_key_ids.

idempotencyKey?string

Client-generated UUID for idempotent create retries. Required for all creates.

coupon?

Optional provider coupon code, validated against the selected plan.

instantAppVariables?

Optional Instant App form overrides (schema from InstantApp.metadata.variables). Unknown keys are rejected. Omitted keys use catalog defaults.

Response Body

application/json

curl -X POST "https://api.noderings.com/v1/virtual-machines" \  -H "Authorization: Bearer {your_token}" \  -H "X-Organization-ID: {your_org_id}" \  -H "Content-Type: application/json" \  -d '{  "hostname": "string",  "planId": "string",  "regionId": "string",  "distro": "DISTRO_UNSPECIFIED",  "tags": [    "string"  ],  "sshKeyIds": [    "string"  ],  "password": "string",  "userData": "string",  "cloudInitUserDataId": "string",  "instantAppId": "string",  "idempotencyKey": "string",  "coupon": {    "code": "string"  },  "instantAppVariables": null}'
{
  "success": true
}