> ## Documentation Index
> Fetch the complete documentation index at: https://www.ravion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List sandbox pool hosts

> Lists every EC2 instance provisioned for this environment's sandbox pool, with what each is doing right now. GET /execution-environments/{id}/sandbox-hosts…



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /execution-environments/{id}/sandbox-hosts
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: FeatureFlags
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: AwsAmp
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: Describe
  - name: Reports
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingCycles
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
paths:
  /execution-environments/{id}/sandbox-hosts:
    get:
      tags:
        - ExecutionEnvironments
      summary: List sandbox pool hosts
      description: >-
        Lists every EC2 instance provisioned for this environment's sandbox
        pool, with what each is doing right now.
      operationId: ListExecutionEnvironmentSandboxHosts
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/ExecutionEnvironmentSandboxHost'
                    type: array
                required:
                  - data
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
components:
  schemas:
    ExecutionEnvironmentSandboxHost:
      additionalProperties: false
      description: One EC2 instance provisioned for this environment's sandbox pool.
      properties:
        availabilityZone:
          description: Availability zone the host runs in.
          type: string
        id:
          description: >-
            The EC2 instance id, which is also the host's id in every log line
            about it.
          type: string
        instanceType:
          description: EC2 instance type the host runs on.
          type: string
        lastUsedAt:
          description: >-
            When the host last finished a sandbox. Absent on a host that has not
            run one yet.
          format: date-time
          type: string
        launchedAt:
          description: When the instance was launched.
          format: date-time
          type: string
        live:
          $ref: '#/components/schemas/ExecutionEnvironmentSandboxHostLiveState'
        parkedAt:
          description: When the host was parked. Absent while it is running.
          format: date-time
          type: string
        state:
          description: >-
            `RUNNING` is a host that is up and takes work. `PARKED` is a host
            that was stopped after its idle timer: it keeps its volume and its
            next step wakes it in seconds.
          enum:
            - RUNNING
            - PARKED
          type: string
      required:
        - id
        - instanceType
        - availabilityZone
        - state
        - launchedAt
        - live
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows SUPERADMINs to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Stripped for internal errors unless
            superadmin.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    ExecutionEnvironmentSandboxHostLiveState:
      additionalProperties: false
      description: >-
        What one host of the pool is doing right now, as the host's own agent
        last reported it. A host the control plane holds no connection to
        reports `connected: false` and zeroes: it may be parked, rebooting, or
        gone.
      properties:
        connected:
          description: Whether a Ravion API replica currently holds this host's connection.
          type: boolean
        cpuCapacity:
          description: vCPUs the host has in total.
          format: int32
          type: integer
        cpuUsed:
          description: vCPUs the running sandboxes hold.
          format: int32
          type: integer
        freeDiskMiB:
          description: >-
            Free space left on the host's root volume, in MiB. Sandboxes write
            their overlays there, so a host low on it takes no more work.
          format: int64
          type: integer
        memoryCapacityMiB:
          description: Memory the host can give its sandboxes in total, in MiB.
          format: int64
          type: integer
        memoryUsedMiB:
          description: Memory the running sandboxes hold, in MiB.
          format: int64
          type: integer
        sandboxCount:
          description: How many sandboxes are running on the host.
          format: int32
          type: integer
      required:
        - connected
        - sandboxCount
        - cpuUsed
        - cpuCapacity
        - memoryUsedMiB
        - memoryCapacityMiB
        - freeDiskMiB
      type: object
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````