---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/sandboxEnvironments"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/sandboxEnvironments"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/sandboxEnvironments

`GET /v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/sandboxEnvironments`

## Request

- Base URL: `https://aiplatform.googleapis.com`
- URL: `https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/sandboxEnvironments`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists SandboxEnvironments in a given reasoning engine.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `reasoningEnginesId` string, required

## Query parameters

- `filter` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse: Response message for SandboxEnvironmentService.ListSandboxEnvironments.
  - `nextPageToken` string: A token, which can be sent as ListSandboxEnvironmentsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.
  - `sandboxEnvironments` GoogleCloudAiplatformV1SandboxEnvironment[]: The SandboxEnvironments matching the request.
    - `connectionInfo` GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo: The connection information of the SandboxEnvironment.
      - `loadBalancerHostname` string: Output only. The hostname of the load balancer.
      - `loadBalancerIp` string: Output only. The IP address of the load balancer.
      - `routingToken` string: Output only. The routing token for the SandboxEnvironment.
      - `sandboxInternalIp` string: Output only. The internal IP address of the SandboxEnvironment.
      - `serviceAttachment` string: Output only. The name of the PSC-E service attachment created for private ingress to this SandboxEnvironment. Only populated when the template enables private ingress (see SandboxEnvironmentTemplate.ingress_control_config). VPC-SC customers use this to create a PSC endpoint in their VPC.
    - `createTime` string, google-datetime: Output only. The timestamp when this SandboxEnvironment was created.
    - `displayName` string: Required. The display name of the SandboxEnvironment.
    - `expireTime` string, google-datetime: Optional. Timestamp in UTC of when this SandboxEnvironment is considered expired. This is *always* provided on output, regardless of what `expiration` was sent on input.
    - `latestSandboxEnvironmentSnapshot` string: Output only. The resource name of the latest snapshot taken for this SandboxEnvironment.
    - `name` string: Identifier. The name of the SandboxEnvironment.
    - `owner` string: Optional. Owner information for this sandbox environment. A Sandbox can only be restored from a snapshot that belongs to the same owner. If not set, sandbox will be created as the default owner.
    - `sandboxEnvironmentSnapshot` string: Optional. The resource name of the SandboxEnvironmentSnapshot to use for creating this SandboxEnvironment. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentSnapshots/{sandbox_environment_snapshot}`
    - `sandboxEnvironmentTemplate` string: Optional. The name of the SandboxEnvironmentTemplate specified in the parent Agent Engine resource that this SandboxEnvironment is created from.
    - `spec` GoogleCloudAiplatformV1SandboxEnvironmentSpec: The specification of a SandboxEnvironment.
      - `codeExecutionEnvironment` GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment: The code execution environment with customized settings.
        - `codeLanguage` 'LANGUAGE_UNSPECIFIED' | 'LANGUAGE_PYTHON' | 'LANGUAGE_JAVASCRIPT': The coding language supported in this environment.
        - `machineConfig` 'MACHINE_CONFIG_UNSPECIFIED' | 'MACHINE_CONFIG_VCPU4_RAM4GIB': The machine config of the code execution environment.
      - `shellEnvironment` GoogleCloudAiplatformV1SandboxEnvironmentSpecShellEnvironment: The shell environment.
    - `state` 'STATE_UNSPECIFIED' | 'STATE_PROVISIONING' | 'STATE_RUNNING' | 'STATE_DEPROVISIONING' | 'STATE_TERMINATED' | 'STATE_DELETED' | 'STATE_PAUSED' | 'STATE_PAUSING' | 'STATE_RESUMING' | 'STATE_STOPPING': Output only. The runtime state of the SandboxEnvironment.
    - `ttl` string, google-duration: Optional. Input only. The TTL for the sandbox environment. The expiration time is computed: now + TTL.
    - `updateTime` string, google-datetime: Output only. The timestamp when this SandboxEnvironment was most recently updated.

---

[API](https://skmtc.dev/google/apis/aiplatform.md) - [All operations](https://skmtc.dev/google/apis/aiplatform/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/aiplatform/revisions/3aca3b348f0c?raw)
