---
title: "POST /v1/{+parent}/sandboxEnvironments"
method: POST
path: "/v1/{+parent}/sandboxEnvironments"
tags: ["projects"]
---

# POST /v1/{+parent}/sandboxEnvironments

`POST /v1/{+parent}/sandboxEnvironments`

Creates a SandboxEnvironment in a given reasoning engine.

## Path parameters

- `parent` string, required

## Request body

- GoogleCloudAiplatformV1SandboxEnvironment — SandboxEnvironment is a containerized environment that provides a customizable secure execution runtime for AI agents.
  - `updateTime` string, google-datetime — Output only. The timestamp when this SandboxEnvironment was most recently updated.
  - `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.
  - `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}`
  - `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.
  - `createTime` string, google-datetime — Output only. The timestamp when this SandboxEnvironment was created.
  - `sandboxEnvironmentTemplate` string — Optional. The name of the SandboxEnvironmentTemplate specified in the parent Agent Engine resource that this SandboxEnvironment is created from.
  - `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.
  - `ttl` string, google-duration — Optional. Input only. The TTL for the sandbox environment. The expiration time is computed: now + TTL.
  - `latestSandboxEnvironmentSnapshot` string — Output only. The resource name of the latest snapshot taken for this SandboxEnvironment.
  - `state` 'STATE_UNSPECIFIED' | 'STATE_PROVISIONING' | 'STATE_RUNNING' | 'STATE_DEPROVISIONING' | 'STATE_TERMINATED' | 'STATE_DELETED' — Output only. The runtime state of the SandboxEnvironment.
  - `connectionInfo` GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo — The connection information of the SandboxEnvironment.
    - `routingToken` string — Output only. The routing token for the SandboxEnvironment.
    - `loadBalancerIp` string — Output only. The IP address of the load balancer.
    - `loadBalancerHostname` string — Output only. The hostname of the load balancer.
    - `sandboxInternalIp` string — Output only. The internal IP address of the SandboxEnvironment.
  - `displayName` string — Required. The display name of the SandboxEnvironment.
  - `name` string — Identifier. The name of the SandboxEnvironment.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
