Skip to content
Hayonix

API reference · Schema

SandboxLimits

  • lifetime_secondsobjectrequired

    How long a sandbox lives unless extended

    Show 3 fields of lifetime_seconds
    • defaultnumberrequired

      Used when you do not set it, in seconds

    • minnumberrequired

      Smallest allowed, in seconds

    • maxnumberrequired

      Largest allowed, in seconds

  • idle_timeout_secondsobjectrequired

    How long a sandbox may go without a run or a file operation before it ends

    Show 3 fields of idle_timeout_seconds
    • defaultnumberrequired

      Used when you do not set it, in seconds

    • minnumberrequired

      Smallest allowed, in seconds

    • maxnumberrequired

      Largest allowed, in seconds

  • run_timeout_secondsobjectrequired

    Time limit of one run

    Show 3 fields of run_timeout_seconds
    • defaultnumberrequired

      Used when you do not set it, in seconds

    • minnumberrequired

      Smallest allowed, in seconds

    • maxnumberrequired

      Largest allowed, in seconds

  • run_max_output_bytesobjectrequired

    Cap on one run’s stdout plus stderr; the run is cut off past it

    Show 3 fields of run_max_output_bytes
    • defaultnumberrequired

      Used when you do not set it, in bytes

    • minnumberrequired

      Smallest allowed, in bytes

    • maxnumberrequired

      Largest allowed, in bytes

  • max_code_bytesnumberrequired

    Largest `code` of one run, in bytes

  • max_stdin_bytesnumberrequired

    Largest `stdin` of one run, in bytes

  • max_concurrent_runsnumberrequired

    Runs one sandbox accepts at once (Python runs queue for its one interpreter)

  • recorded_output_bytesnumberrequired

    Bytes of each of stdout and stderr kept with a run’s record (the response to the run itself has all of it)

  • run_retention_daysnumberrequired

    Days run records are kept after their sandbox ends

  • max_file_bytesnumberrequired

    Largest file you can upload, in bytes

  • max_live_per_projectnumberrequired

    Sandboxes one project can have at once that have not ended (the organization’s `sandboxes` quota applies too)

Example
{
  "lifetime_seconds": {
    "default": 1.5,
    "min": 1.5,
    "max": 1.5
  },
  "idle_timeout_seconds": {
    "default": 1.5,
    "min": 1.5,
    "max": 1.5
  },
  "run_timeout_seconds": {
    "default": 1.5,
    "min": 1.5,
    "max": 1.5
  },
  "run_max_output_bytes": {
    "default": 1.5,
    "min": 1.5,
    "max": 1.5
  },
  "max_code_bytes": 1.5,
  "max_stdin_bytes": 1.5,
  "max_concurrent_runs": 1.5,
  "recorded_output_bytes": 1.5,
  "run_retention_days": 1.5,
  "max_file_bytes": 1.5,
  "max_live_per_project": 1.5
}