Skip to main content
POST
Terminate an instance

Authorizations

Authorization
string
header
required

An API key issued by Hive Compute support. See Authentication above for how to request one.

Path Parameters

id
string<uuid>
required

The instance's unique identifier.

Body

application/json

Optional context recorded in the audit trail for this action.

reason_note
string

Free-text note explaining why the action was taken.

Maximum string length: 10000
Example:

"scaling down overnight"

Response

The request was accepted; the instance's current state is returned.

instance_id
string<uuid>

Unique identifier.

name
string

Display name.

Example:

"training-run-4"

status
enum<string>

Current lifecycle state.

Available options:
CREATED,
DEPLOYED,
STARTING,
RUNNING,
ERRORED,
TERMINATING,
TERMINATED,
STOPPING,
STOPPED
region
string

Region the instance runs in.

Example:

"eu-west"

gpu_type
string

GPU model.

Example:

"RTX 4090"

size
string

SKU name of the preset the instance runs on.

Example:

"8x-RTX-4090"

cpu_count
integer

Virtual CPUs allocated.

resources
string

Human-readable summary of the allocated hardware.

bandwidth
number

Allocated bandwidth, in Mbps.

storage_used_gb
number

Storage currently in use, in GB.

hourly_rate
number

Price charged per hour while running, in credits.

current_cost
number

Cost accrued during the current run, in credits.

total_cost_incurred
number

Total cost over the instance's whole life, in credits.

total_runtime_hours
number

Total hours the instance has spent running.

ttl_remaining_hours
number

Hours remaining before the instance is stopped automatically.

started_at
string<date-time> | null

When the instance last entered RUNNING.

terminated_at
string<date-time> | null

When the instance was terminated, if it has been.

termination_reason
string | null

Why the instance was terminated, if it has been.

guest_ready
string

Whether the guest OS has finished booting and is reachable.

guest_ready_reason
string | null

Explanation when the guest is not ready.