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.
Output only. The connection information of the SandboxEnvironment.
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 code execution environment.
| JSON representation |
|---|
{
// sandbox_environment_category
"codeExecutionEnvironment": {
object ( |
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.
| JSON representation |
|---|
{ "loadBalancerIp": string, "loadBalancerHostname": string, "sandboxInternalIp": 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. |