Resource: SandboxEnvironmentTemplate
The specification of a SandboxEnvironmentTemplate. A SandboxEnvironmentTemplate defines a template for creating SandboxEnvironments.
namestring
Identifier. The resource name of the SandboxEnvironmentTemplate. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}/sandboxEnvironmentTemplates/{sandboxEnvironmentTemplate}
displayNamestring
Required. The display name of the SandboxEnvironmentTemplate.
Output only. The timestamp when this SandboxEnvironmentTemplate 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 SandboxEnvironmentTemplate 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 state of the sandbox environment template.
Optional. The configuration for egress control of this template.
sandbox_environment_categoryUnion type
sandbox_environment_category can be only one of the following:The sandbox environment for custom container workloads.
The sandbox environment for default container workloads.
| JSON representation |
|---|
{ "name": string, "displayName": string, "createTime": string, "updateTime": string, "state": enum ( |
CustomContainerEnvironment
The customized sandbox runtime environment for BYOC.
The specification of the custom container environment.
Ports to expose from the container.
Resource requests and limits for the container.
| JSON representation |
|---|
{ "customContainerSpec": { object ( |
CustomContainerSpec
Specification for deploying from a custom container image.
imageUristring
Required. The Artifact Registry Docker image URI (e.g., us-central1-docker.pkg.dev/my-project/my-repo/my-image:tag) of the container image that is to be run on each worker replica.
| JSON representation |
|---|
{ "imageUri": string } |
NetworkPort
Represents a network port in a container.
portinteger
Optional. Port number to expose. This must be a valid port number, between 1 and 65535.
Optional. protocol for port. Defaults to TCP if not specified.
| JSON representation |
|---|
{
"port": integer,
"protocol": enum ( |
Protocol
The protocol for the port.
| Enums | |
|---|---|
PROTOCOL_UNSPECIFIED |
Unspecified protocol. Defaults to TCP. |
TCP |
TCP protocol. |
UDP |
UDP protocol. |
ResourceRequirements
message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template.
requestsmap (key: string, value: string)
Optional. The requested amounts of compute resources. Keys are resource names (e.g., "cpu", "memory"). Values are quantities (e.g., "250m", "512Mi").
limitsmap (key: string, value: string)
Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., "cpu", "memory"). Values are quantities (e.g., "500m", "1Gi").
| JSON representation |
|---|
{ "requests": { string: string, ... }, "limits": { string: string, ... } } |
DefaultContainerEnvironment
The default sandbox runtime environment for default container workloads.
Required. The category of the default container image.
Optional. Resource requests and limits for the default container.
| JSON representation |
|---|
{ "defaultContainerCategory": enum ( |
DefaultContainerCategory
The category of the default container image.
| Enums | |
|---|---|
DEFAULT_CONTAINER_CATEGORY_UNSPECIFIED |
The default value. This value is unused. |
DEFAULT_CONTAINER_CATEGORY_COMPUTER_USE |
The default container image for Computer Use. |
State
Represents the state of a sandbox environment template.
| Enums | |
|---|---|
UNSPECIFIED |
The default value. This value is unused. |
PROVISIONING |
Runtime resources are being allocated for the sandbox environment. |
ACTIVE |
Sandbox runtime is ready for serving. |
DEPROVISIONING |
Sandbox runtime is halted, performing tear down tasks. |
DELETED |
Sandbox has terminated with underlying runtime failure. |
FAILED |
Sandbox has failed to provision. |
EgressControlConfig
Configuration for egress control of sandbox instances.
internetAccessboolean
Optional. Whether to allow internet access.
| JSON representation |
|---|
{ "internetAccess": boolean } |
Methods |
|
|---|---|
|
Creates a SandboxEnvironmentTemplate in a given reasoning engine. |
|
Deletes the specific SandboxEnvironmentTemplate. |
|
Gets details of the specific SandboxEnvironmentTemplate. |
|
Lists SandboxEnvironmentTemplates in a given reasoning engine. |