Instances
Put instance in standby (pause, snapshot, delete VMM)
client.Instances.Standby(ctx, id) (*Instance, error)
/instances/{id}/standby
Restore instance from standby
client.Instances.Restore(ctx, id) (*Instance, error)
/instances/{id}/restore
Fork an instance from stopped, standby, or running (with from_running=true)
client.Instances.Fork(ctx, id, body) (*Instance, error)
/instances/{id}/fork
Start a stopped instance
client.Instances.Start(ctx, id, body) (*Instance, error)
/instances/{id}/start
Stop instance (graceful shutdown)
client.Instances.Stop(ctx, id) (*Instance, error)
/instances/{id}/stop
Stream instance logs (SSE)
client.Instances.Logs(ctx, id, query) (*string, error)
/instances/{id}/logs
Get filesystem path info
client.Instances.Stat(ctx, id, query) (*PathInfo, error)
/instances/{id}/stat
Get instance resource utilization stats
client.Instances.Stats(ctx, id) (*InstanceStats, error)
/instances/{id}/stats
Models
InstancesVolumes
Attach volume to instance
client.Instances.Volumes.Attach(ctx, volumeID, params) (*Instance, error)
/instances/{id}/volumes/{volumeId}
Detach volume from instance
client.Instances.Volumes.Detach(ctx, volumeID, body) (*Instance, error)
/instances/{id}/volumes/{volumeId}
InstancesSnapshots
Create a snapshot for an instance
client.Instances.Snapshots.New(ctx, id, body) (*Snapshot, error)
/instances/{id}/snapshots
Restore an instance from a snapshot in-place
client.Instances.Snapshots.Restore(ctx, snapshotID, params) (*Instance, error)
/instances/{id}/snapshots/{snapshotId}/restore