Resource: SandboxEnvironment
SandboxEnvironment is a containerized environment that provides a customizable secure execution runtime for AI agents.
namestring
Identifier. The name of the SandboxEnvironment.
displayNamestring
Required. The display name of the SandboxEnvironment.
Output only. The timestamp when this SandboxEnvironment was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Output only. The timestamp when this SandboxEnvironment was most recently updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Output only. The runtime state of the SandboxEnvironment.
Optional. The configuration of the SandboxEnvironment.
sandboxEnvironmentTemplatestring
Optional. The name of the SandboxEnvironmentTemplate specified in the parent Agent Engine resource that this SandboxEnvironment is created from.
Output only. The connection information of the SandboxEnvironment.
latestSandboxEnvironmentSnapshotstring
Output only. The resource name of the latest snapshot taken for this SandboxEnvironment.
ownerstring
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.
sandboxEnvironmentSnapshotstring
Optional. The resource name of the SandboxEnvironmentSnapshot to use for creating this SandboxEnvironment. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}/sandboxEnvironmentSnapshots/{sandboxEnvironmentSnapshot}
expirationUnion type
expiration can be only one of the following: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.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Optional. Input only. The TTL for the sandbox environment. The expiration time is computed: now + TTL.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
| JSON representation |
|---|
{ "name": string, "displayName": string, "createTime": string, "updateTime": string, "state": enum ( |
State
The state of the SandboxEnvironment.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The default value. This value is unused. |
STATE_PROVISIONING |
Runtime resources are being allocated for the sandbox environment. |
STATE_RUNNING |
Sandbox runtime is ready for serving. |
STATE_DEPROVISIONING |
Sandbox runtime is halted, performing tear down tasks. |
STATE_TERMINATED |
Sandbox has terminated with underlying runtime failure. |
STATE_DELETED |
Sandbox runtime has been deleted. |
SandboxEnvironmentSpec
The specification of a SandboxEnvironment.
sandbox_environment_categoryUnion type
sandbox_environment_category can be only one of the following:Optional. The computer use environment.
Optional. The code execution environment.
| JSON representation |
|---|
{ // sandbox_environment_category "computerUseEnvironment": { object ( |
ComputerUseEnvironment
This type has no fields.
The computer use environment with customized settings.
CodeExecutionEnvironment
The code execution environment with customized settings.
The machine config of the code execution environment.
The coding language supported in this environment.
| JSON representation |
|---|
{ "machineConfig": enum ( |
MachineConfig
The machine config of the code execution environment.
| Enums | |
|---|---|
MACHINE_CONFIG_UNSPECIFIED |
The default value: milligcu 2000, memory 1.5Gib |
MACHINE_CONFIG_VCPU4_RAM4GIB |
The default value: milligcu 4000, memory 4 Gib |
Language
The coding language supported by the code execution environment.
| Enums | |
|---|---|
LANGUAGE_UNSPECIFIED |
The default value. This value is unused. |
LANGUAGE_PYTHON |
The coding language is Python. |
LANGUAGE_JAVASCRIPT |
The coding language is JavaScript. |
ConnectionInfo
The connection information of the SandboxEnvironment.
loadBalancerIpstring
Output only. The IP address of the load balancer.
loadBalancerHostnamestring
Output only. The hostname of the load balancer.
sandboxInternalIpstring
Output only. The internal IP address of the SandboxEnvironment.
routingTokenstring
Output only. The routing token for the SandboxEnvironment.
| JSON representation |
|---|
{ "loadBalancerIp": string, "loadBalancerHostname": string, "sandboxInternalIp": string, "routingToken": string } |
Methods |
|
|---|---|
|
Creates a SandboxEnvironment in a given reasoning engine. |
|
Deletes the specific SandboxEnvironment. |
|
Executes using a sandbox environment. |
|
Gets details of the specific SandboxEnvironment. |
|
Lists SandboxEnvironments in a given reasoning engine. |
|
Pauses the specific SandboxEnvironment. |
|
Resumes the specific SandboxEnvironment. |
|
Snapshots the specific SandboxEnvironment resource and creates a SandboxEnvironmentSnapshot resource. |