Skip to main content

sandbox_environment_templates

Creates, updates, deletes, gets or lists a sandbox_environment_templates resource.

Overview

Namesandbox_environment_templates
TypeResource
Idgoogle.aiplatform.sandbox_environment_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the SandboxEnvironmentTemplate. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}
createTimestring (google-datetime)Output only. The timestamp when this SandboxEnvironmentTemplate was created.
customContainerEnvironmentobjectThe sandbox environment for custom container workloads. (id: GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment)
defaultContainerEnvironmentobjectThe sandbox environment for default container workloads. (id: GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment)
displayNamestringRequired. The display name of the SandboxEnvironmentTemplate.
egressControlConfigobjectOptional. The configuration for egress control of this template. (id: GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig)
statestringOutput only. The state of the sandbox environment template. (UNSPECIFIED, PROVISIONING, ACTIVE, DEPROVISIONING, DELETED, FAILED)
updateTimestring (google-datetime)Output only. The timestamp when this SandboxEnvironmentTemplate was most recently updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreasoningEnginesId, sandboxEnvironmentTemplatesIdGets details of the specific SandboxEnvironmentTemplate.
listselectreasoningEnginesIdpageToken, filter, pageSizeLists SandboxEnvironmentTemplates in a given reasoning engine.
createinsertreasoningEnginesIdCreates a SandboxEnvironmentTemplate in a given reasoning engine.
deletedeletereasoningEnginesId, sandboxEnvironmentTemplatesIdDeletes the specific SandboxEnvironmentTemplate.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
reasoningEnginesIdstring
sandboxEnvironmentTemplatesIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of the specific SandboxEnvironmentTemplate.

SELECT
name,
createTime,
customContainerEnvironment,
defaultContainerEnvironment,
displayName,
egressControlConfig,
state,
updateTime
FROM google.aiplatform.sandbox_environment_templates
WHERE reasoningEnginesId = '{{ reasoningEnginesId }}' -- required
AND sandboxEnvironmentTemplatesId = '{{ sandboxEnvironmentTemplatesId }}' -- required
;

INSERT examples

Creates a SandboxEnvironmentTemplate in a given reasoning engine.

INSERT INTO google.aiplatform.sandbox_environment_templates (
data__displayName,
data__egressControlConfig,
data__defaultContainerEnvironment,
data__name,
data__customContainerEnvironment,
reasoningEnginesId
)
SELECT
'{{ displayName }}',
'{{ egressControlConfig }}',
'{{ defaultContainerEnvironment }}',
'{{ name }}',
'{{ customContainerEnvironment }}',
'{{ reasoningEnginesId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes the specific SandboxEnvironmentTemplate.

DELETE FROM google.aiplatform.sandbox_environment_templates
WHERE reasoningEnginesId = '{{ reasoningEnginesId }}' --required
AND sandboxEnvironmentTemplatesId = '{{ sandboxEnvironmentTemplatesId }}' --required
;