api.compute

Overview

Run a one-off command or keep a terminal open in an isolated cloud workspace backed by one of your IaGenify Object Storages.

container-isolatedObject Storage workspacenetwork access is disabled
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

The surface

CallWhat it does
status()Reports whether the compute runner can accept work.
exec(options)Runs one command in a temporary container and returns when it finishes.
terminalsCreates, lists, reads and removes persistent terminal sessions.

Workspace and isolation

Each command runs in a container with the selected Object Storage mounted at /workspace. That storage is the only mounted workspace. The runner reports its network policy through status(); network access defaults to none, while deployments may explicitly allow egress. If the runner is unavailable, calls fail instead of running commands on the API host.

Choose a one-off command or a terminal

  • Use exec() for a bounded command whose output and exit status you need once.
  • Use terminals.create() for a process that should remain open while you send more lines, read incremental output, or open a preview port.
  • Use terminals.interrupt() to stop the current command and keep the terminal, or terminals.remove() to close the terminal and its container.
A terminal can execute commands

Treat terminal creation, input and preview URLs as access to a live workspace. Keep the API key server-side, scope the selected storage deliberately, and do not expose a preview URL as a secret-free public endpoint.