FugokuFugoku Docs
Mask

Instances

Legacy compute instance endpoints for virtual machines

Instances

Instances are the legacy virtual machine resources. The unified server model (/v1/servers) is now preferred for both bare metal and virtual machines.

VM-specific endpoints remain under /v1/instances for metrics, events, SSH, and backup operations.

List Instances

GET /v1/instances

Query Parameters:

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 20, max: 100)
sortstringSort field: name, status, createdAt, region
statusstringFilter by status
providerstringFilter by provider ID
regionstringFilter by region
fields[instances]stringComma-separated fields to include

Example:

curl "https://api.fugoku.com/v1/instances?page=1&limit=20&sort=createdAt" \
  -H "Authorization: Bearer $TOKEN"

Get Instance

GET /v1/instances/:id

Create Instance

POST /v1/instances

Request Body:

FieldTypeRequiredDescription
namestringYesInstance name (1-64 chars)
providerIdstringYesProvider ID
regionstringYesRegion identifier
instanceTypestringYesInstance type / plan
workerCountintegerNoNumber of workers (default: 1)
imagestringNoOS image slug
diskSizeGbintegerNoDisk size in GB
sshKeyIdstringNoSSH key ID
spotbooleanNoUse spot pricing (default: false)
portsarrayNoPort numbers to expose
autoStopMinutesintegerNoAuto-stop after inactivity
acceleratorsstringNoGPU accelerators (e.g., A100:1)
tagsobjectNoKey-value tags

Example:

curl -X POST https://api.fugoku.com/v1/instances \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-gpu-server",
    "providerId": "prov-1",
    "region": "us-east-1",
    "instanceType": "g3.h100.2x",
    "workerCount": 1,
    "image": "ubuntu-22.04",
    "diskSizeGb": 100,
    "spot": false
  }'

Returns 202 Accepted with instance data and jobId.

Get Instance

GET /v1/instances/:id

Update Instance

PATCH /v1/instances/:id

Request Body:

FieldTypeRequiredDescription
namestringNoNew instance name
tagsobjectNoKey-value tags

Delete Instance

DELETE /v1/instances/:id

Returns 202 Accepted with jobId. Deletion is asynchronous.

Instance Actions

POST /v1/instances/:id/action

Request Body:

{
  "action": "start | stop | restart | terminate | reinstall | rescue"
}

Supported actions: start, stop, restart, terminate, reinstall, rescue.

Instance Metrics

GET /v1/instances/:id/metrics

Returns CPU, memory, GPU, network, and disk utilization metrics.

Instance Events

GET /v1/instances/:id/events

Returns activity log for the instance.

SSH Connection Info

GET /v1/instances/:id/ssh

Returns host, port, username, and key fingerprint for SSH access.

Instance Job History

GET /v1/instances/:id/jobs

Returns job history for the instance with pagination.

All Instances (Aggregated)

GET /v1/instances/all

Returns all active instances across all enabled providers. Supports ?refresh=true to force live status sync.

Instance Backups

GET /v1/instances/:instanceId/backups
POST /v1/instances/:instanceId/backups

List and create backups for a virtual machine instance.

Status Values

ValueDescription
creatingInstance is being provisioned
activeRunning and available
stoppingShutting down
stoppedPowered off
errorProvisioning or runtime error
terminatedPermanently deleted
terminatingDeletion in progress
startingBooting up
provisioningPost-creation setup

On this page