Create Virtual Machine
Create Virtual Machine on the NodeRings client API (POST /v1/virtual-machines).
Bearer token
In: header
Tenant or organization identifier
In: header
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.
"DISTRO_UNSPECIFIED""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"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 for VM access. Either user_data, ssh_key_ids, or password must be provided, but only one.
User data for CloudInit. Either user_data, ssh_key_ids, password, or cloud_init_user_data_id must be provided, but only one.
Saved client cloud-init user_data profile ID. Replaces provider user_data at VM create.
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.
Client-generated UUID for idempotent create retries. Required for all creates.
Optional provider coupon code, validated against the selected plan.
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
}