Skip to content

Instances

An instance is a virtual server. These endpoints create, list, inspect, update, power, and delete them. Creating, powering, and deleting are asynchronous: they return a workflow you poll until the instance settles.

Search instances

GET/v1/workspaces/{wid}/instancesSearch instances

Lists the instances in a workspace, newest first, with pagination.

Path parameters

NameTypeDescription
widintegerWorkspace ID

Query parameters

NameTypeDescription
qstringQuick search by name, IP address, or ID
ipstringFilter by a public or private IP address
idinteger[]Filter to specific instance IDs
namestringFilter by name
nodeinteger[]Filter by node ID
planinteger[]Filter by plan ID
isointeger[]Filter by attached ISO ID
onlinebooleanOnly online, or only offline, instances
statestringFilter by resource state (AVAILABLE, PENDING, ...)

Plus the shared pagination parameters. Returns a paged list of instances.

Create an instance

POST/v1/workspaces/{wid}/instancesProvision a new instance

Provisions a new instance. The body is one of two shapes, chosen by the type discriminator: PLAN provisions from a preset plan, CUSTOM sizes every part yourself. Requires the Administrator role on the workspace. See the Create a server guide for a full walkthrough.

Path parameters

NameTypeDescription
widintegerWorkspace ID

Common body fields (both shapes)

FieldTypeRequiredDescription
typestringyesPLAN or CUSTOM
namestringyesInstance name
regionstringyesRegion to deploy in, for example NA_01 (or PRIVATE_CLOUD). Send node instead to target a specific node.
imageintegerImage to provision from: a template or backup is restored onto the boot disk, an ISO is attached
ipsobject[]Floating IPs to allocate, each { "family": "IPv4" | "IPv6", "ddos": false }. A plan grants one IPv4 and one IPv6 when omitted.
vpcsinteger[]VPC IDs to attach at creation, each getting its own NIC
bootstringBoot mode, DISK or ISO
cloud_initstringcloud-init user-data run on first boot (see Run code with cloud-init)
disable_cloud_initbooleanTurn off vendor cloud-init features
startbooleanStart the instance once it is built

PLAN body adds

FieldTypeRequiredDescription
planintegeryesPlan ID; fixes the specs and the flat price

CUSTOM body adds

FieldTypeRequiredDescription
groupstringyesService group, for example LIGHTNING, RYZEN, DEDICATED
cpuintegeryesNumber of vCPU cores
memory_bytesintegeryesMemory in bytes
storageobject[]yesDisks, each { "size_bytes": n, "boot": true, "backing": "LOCAL" }. Exactly one must have boot: true.
bandwidthobjectCaps, { "upload_bytes_sec": n, "download_bytes_sec": n }
bash
curl -X POST https://api.galaxygate.net/v1/workspaces/42/instances \
  -H "Authorization: Bearer $GALAXYGATE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "PLAN",
    "name": "web-01",
    "region": "NA_01",
    "plan": 12,
    "image": 45,
    "ips": [ { "family": "IPv4", "ddos": false }, { "family": "IPv6", "ddos": false } ],
    "start": true
  }'

Returns a workflow with the new instance attached. Poll GET /v1/instances/{id} until its state is AVAILABLE and online is true.

Fetch an instance

GET/v1/instances/{id}Fetch instance detail

Path parameters

NameTypeDescription
idintegerInstance ID

Returns the full instance detail, including specs, networking, state, and online.

Update an instance

PATCH/v1/instances/{id}Update instance settings

Updates instance settings. Every field is optional; send only what you are changing.

Path parameters

NameTypeDescription
idintegerInstance ID

Request body

FieldTypeDescription
namestringRename the instance
bootstringBoot target, DISK or ISO
uefibooleanBoot with UEFI firmware
secure_bootbooleanEnable Secure Boot
attach_virtio_cdbooleanAttach the VirtIO drivers CD
sync_hostnamebooleanKeep the guest hostname in sync with the name
firewall_enabledbooleanTurn the firewall on or off
os_namestringOS display name, for example Ubuntu 24.04

Returns the updated instance.

Power an instance

POST/v1/instances/{id}/powerIssue a power action

Issues a power action. Responds 202 Accepted with a workflow.

Path parameters

NameTypeDescription
idintegerInstance ID

Request body

FieldTypeRequiredDescription
actionstringyesOne of POWER_ON, POWER_OFF, SHUTDOWN, POWER_CYCLE. POWER_CYCLE is the hard reboot the panel labels Reboot.
bash
curl -X POST https://api.galaxygate.net/v1/instances/101/power \
  -H "Authorization: Bearer $GALAXYGATE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "action": "POWER_CYCLE" }'

To power several instances in one call, see batch power. Returns a workflow.

Delete an instance

DELETE/v1/instances/{id}Terminate an instance

Terminates the instance and frees its resources. This is destructive and asynchronous.

Path parameters

NameTypeDescription
idintegerInstance ID

Returns a workflow. If the instance is scheduled for deletion rather than removed at once, you can stop that with cancel termination. Returns a workflow.

Fetch instance metrics

GET/v1/metricsFetch instance metrics

Returns time-series metrics (CPU, memory, disk, network) for one instance over a window. Values are raw; the panel normalizes them for display.

Query parameters

NameTypeRequiredDescription
instanceintegeryesInstance ID
startintegeryesWindow start, Unix seconds
endintegeryesWindow end, Unix seconds
stepintegeryesResolution in seconds (minimum 15)

Returns the metric series for the window.