Skip to content

Instances ​

An instance is a virtual server. These endpoints list, inspect, update, and power them. We provision customer instances through billing orders for server packages. Power actions are asynchronous and return a workflow.

Search instances ​

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

Lists the instances in a workspace with pagination. Use sort=id&dir=desc for newest first.

Path parameters

NameTypeDescription
widstringWorkspace ID

Query parameters

NameTypeDescription
qstringQuick search by name, IP address, or ID
ipstringFilter by a public or private IP address
idstring[]Filter to specific instance IDs
namestringFilter by name
nodestring[]Filter by node ID
skustring[]Filter by product code
isostring[]Filter by attached ISO ID
onlinebooleanOnly online, or only offline, instances
statestring[]PENDING, AVAILABLE, FAILED, SUSPENDED, DELETING, UNPLACED
bootstringDISK or ISO
terminatingbooleanFilter by whether termination is scheduled
backup_planstring[]Filter by backup plan ID
regionstringNA_01
vpcstring[]Filter by VPC ID
osstringWINDOWS, LINUX, or BSD
ownerstring[]Filter by workspace ID

All query parameters are optional. Plus the shared pagination parameters. Returns 200 OK with KeysetResultEnrichedInstanceListViewInstanceLive, containing items, has_next, has_previous, limit, page, total, and nullable after and before cursors. Each item includes live online state.

Create an instance ​

We create servers with POST /v1/workspaces/{wid}/orders. See Place an order for package selection, request fields, payment collection, and the 200 OK response. See Create a server for a provisioning example.

Remove an instance ​

We remove delivered servers with POST /v1/subjects/{sid}/cancel. Read the instance's subject ID, then follow Cancel a purchase. This returns 200 OK with SubjectView and stops billing. For an undelivered purchase, follow Cancel an order.

Fetch an instance ​

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

Path parameters

NameTypeDescription
iidstringInstance ID, required

Returns 200 OK with EnrichedInstanceDetailViewInstanceLive, including details, networking, state, live online state, and the nullable billing subject ID.

Update an instance ​

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

Updates instance settings. The request body is required. Every field is optional. Send only what you are changing.

Path parameters

NameTypeDescription
iidstringInstance ID, required

Request body

FieldTypeDescription
namestringName and hostname, letters, digits, and hyphens in dot-separated labels, at most 63 characters
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
user_cloudinitstring or nullCloud-init user data, or null to clear it
disable_cloudinitbooleanDisable vendor cloud-init features
os_namestring or nullOS display name, for example Ubuntu 24.04, or null to clear it

Returns 200 OK with the updated EnrichedInstanceDetailViewInstanceLive.

Power an instance ​

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

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

Path parameters

NameTypeDescription
iidstringInstance ID, required

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.

Fetch instance metrics ​

GET/v1/metricsFetch instance metrics

Returns time-series metrics (CPU, memory, disk, network) for one instance over a window. Each series has its own unit.

Query parameters

NameTypeRequiredDescription
instancestringyesInstance ID
startintegeryesWindow start, non-negative Unix seconds
endintegeryesWindow end, non-negative Unix seconds
stepintegeryesResolution in seconds (minimum 15)

Returns 200 OK with InstanceMetrics: cpu, memory, disk_reads, disk_writes, disk_total, disk_used, network_incoming, network_outgoing, bandwidth_incoming_bytes, and bandwidth_outgoing_bytes.

CPU usage is a percentage where 100 means one full core. Memory and filesystem usage are bytes. Disk throughput is KiB/s and network throughput is bytes per second. The bandwidth totals integrate traffic over the requested window. Guest memory and filesystem series can be empty when the guest agent is unavailable.