Skip to content
NimbusNexus

Virtual machines

A NimbusNexus virtual machine is a compute instance with one boot disk and one network interface per network it joins. You create one with POST /api/v1/instance/ in your session's region; everything else (block volumes, public IPs) attaches to it as separate resources.

When to use a VM

VMs are the right primitive when you need:

  • Persistent state on disk between requests (a database, a build cache, a long-running queue worker).
  • Full OS control — installing packages, tuning kernel parameters, running anything that needs system access.
  • A specific instance shape — the vCPU count and RAM your workload needs.

If your workload is stateless and request-shaped, container platforms (Kubernetes managed services, serverless runtimes) are usually a better fit. The line is roughly: if you'd be sad if a process restart erased local files, you want a VM.

Shape and creation

POST /api/v1/instance/ takes a name and a spec that sets the VM's shape: architecture and vm_class, cpu (vCPUs) and ram (MB), and the volume_type of its boot disk (see Block storage). It also needs an image (or bootable volumes), at least one network and at least one security_group. Optional fields include sshs (the SSH key to install), volume_size (the boot disk's size in GB when you boot from image; default 5), user_data, metadata and subscription. Joining a provider network also needs bandwidth_mbps and subscription.bandwidth; without them the call answers 400.

There are no size codes. GET /api/v1/instance/artifacts lists the architecture and vm_class choices for your session's region in vm_options, along with the images, networks, security groups, SSH keys, server groups and volumes you can use. The VM runs on a flavor with exactly your cpu and ram; the API creates one if none exists. Prices are in Pricing data.

Lifecycle

Creating a VM is asynchronous: POST /api/v1/instance/ queues the work and answers {"success": true}, with no id. Find the new VM in GET /api/v1/instance/ and follow its status, the compute service's own value. The ones you'll meet most:

  • BUILD — the VM is being created.
  • ACTIVE — running.
  • SHUTOFF — stopped.
  • VERIFY_RESIZE — resized, waiting for you to confirm or revert (see VM sizes).
  • ERROR — something failed; fault says what.

POST /api/v1/instance/action starts, stops or deletes VMs: list their ids in servers and set cmd to start, stop or delete. A stopped VM is still billed: billing runs from create until delete, on the plan in subscription.vm (default Monthly). Deleting a VM deletes the boot volume made from its image; volumes passed in volumes, or attached later, stay available.

Naming and stable ids

Two identifiers live on every VM:

  • id — the VM's UUID. Stable for the life of the VM. Use this in URLs, foreign keys, audit logs.
  • name — human-readable, any non-empty string. Change it, or the description, with PATCH /api/v1/instance/{instance_id}. Don't put this in any code path you don't want to rewrite the day someone renames the VM.

The endpoint reference below uses {instance_id} in path templates ({server_id} on the VM interfaces endpoints); the value you pass is the VM's id.

Reference

GET/api/v1/instance/

List Instances

List virtual machine instances visible to the caller (own project, or all projects when called as admin).

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/instance/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/instance/

Create Instance

Provision a new virtual machine instance with the requested flavor, image, networks and security groups.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
name*string—
descriptionstring | null—
imagestring | null—
spec*ServerSpecParams—
subscriptionSubscriptionSpecPer-resource billing plan, defaulting to the plan most customers are on. ``bandwidth`` stays optional: bandwidth is only billed when the caller asks for it, and ``instance_base`` requires it explicitly on a provider network.
bandwidth_mbpsinteger | nullBandwidth limit in Mbps on provider-network ports; must be a multiple of 10.
network*array of string—
security_group*array of string—
root_passwordstring | null—
sshsstring | null—
volume_sizeinteger | null—
volumesarray of string | null—
server_groupsarray of string | null—
user_datastring | null—
metadataobject | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "spec": {
      "architecture": "example",
      "vm_class": "example",
      "cpu": 1,
      "ram": 256,
      "volume_type": "example"
    },
    "network": [
      "example"
    ],
    "security_group": [
      "example"
    ]
  }'
POST/api/v1/instance/action

Instances Action

Execute a power-state or lifecycle action on one or more instances (start, stop, reboot, pause, suspend, etc.).

Request body

FieldTypeDescription
servers*array of string—
cmd*"start" | "stop" | "delete"—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/action" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "servers": [
      "00000000-0000-0000-0000-000000000000"
    ],
    "cmd": "start"
  }'
GET/api/v1/instance/artifacts

Instance Create Artifacts

Return reference data needed to provision a new instance (available images, networks, security groups, key pairs).

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_type_namequerystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/instance/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/instance/server-groups

List Instance Groups

List server groups (affinity / anti-affinity policies) for VM placement.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/instance/server-groups" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/instance/server-groups

Create Instance Group

Create a new server group with the chosen affinity / anti-affinity policy.

Request body

FieldTypeDescription
name*string—
policy*string—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/server-groups" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "policy": "example"
  }'
DELETE/api/v1/instance/server-groups

Delete Instance Groups

Delete one or more server groups by id.

Request body

FieldTypeDescription
ids*array of string—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/instance/server-groups" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "example"
    ]
  }'
GET/api/v1/instance/{instance_id}

Instance Get

Get the full details of a single virtual machine instance.

Parameters

NameInTypeDescription
instance_id*pathstring—
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/instance/<instance_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PATCH/api/v1/instance/{instance_id}

Instance Update

Update mutable properties of an existing instance (e.g. name, metadata).

Parameters

NameInTypeDescription
instance_id*pathstring—

Request body

FieldTypeDescription
namestring | null—
descriptionstring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/instance/<instance_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/instance/{instance_id}

Delete Instance

Delete instance by ID

Parameters

NameInTypeDescription
instance_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/instance/<instance_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/instance/{instance_id}/confirm_resize

Confirm Instance Resize

Confirm a pending resize, finalising the move to the new flavor and releasing the old one.

Parameters

NameInTypeDescription
instance_id*pathstring—
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/<instance_id>/confirm_resize" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/instance/{instance_id}/console

Console

Open an interactive console session (VNC/serial) for the given instance.

Parameters

NameInTypeDescription
instance_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/instance/<instance_id>/console" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/instance/{instance_id}/resize

Resize Instance

Begin resizing an instance to a different flavor; must be confirmed or reverted before the resize is finalized.

Parameters

NameInTypeDescription
instance_id*pathstring—

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
spec*productVirtualMachineCreateSpec—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/<instance_id>/resize" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "spec": {
      "architecture": "example",
      "vm_class": "example",
      "cpu": 1,
      "ram": 256
    }
  }'
POST/api/v1/instance/{instance_id}/revert_resize

Revert Instance Resize

Revert a pending resize, returning the instance to its previous flavor.

Parameters

NameInTypeDescription
instance_id*pathstring—
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/instance/<instance_id>/revert_resize" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →