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)
ingressControlConfigobjectOptional. The configuration for private ingress (PSC-E) of this template. When set, the sandbox router is exposed privately via a PSC service attachment so VPC-SC customers can connect from their VPC over a private endpoint instead of the public internet. The resulting service attachment is surfaced on SandboxEnvironment.connection_info.service_attachment. Only the PSC-E (service-attachment/ingress) portion of PrivateServiceConnectConfig applies here: enable_private_service_connect and project_allowlist (the consumer projects allowed to connect). The nested psc_interface_config (PSC-I / egress) is not used for sandbox ingress; sandbox egress is configured via egress_control_config instead. (id: GoogleCloudAiplatformV1PrivateServiceConnectConfig)
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
getselectprojectsId, locationsId, reasoningEnginesId, sandboxEnvironmentTemplatesIdGets details of the specific SandboxEnvironmentTemplate.
listselectprojectsId, locationsId, reasoningEnginesIdfilter, pageSize, pageTokenLists SandboxEnvironmentTemplates in a given reasoning engine.
createinsertprojectsId, locationsId, reasoningEnginesIdCreates a SandboxEnvironmentTemplate in a given reasoning engine.
deletedeleteprojectsId, locationsId, reasoningEnginesId, 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
locationsIdstring
projectsIdstring
reasoningEnginesIdstring
sandboxEnvironmentTemplatesIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets details of the specific SandboxEnvironmentTemplate.

SELECT
name,
createTime,
customContainerEnvironment,
defaultContainerEnvironment,
displayName,
egressControlConfig,
ingressControlConfig,
state,
updateTime
FROM google.aiplatform.sandbox_environment_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND 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__customContainerEnvironment,
data__defaultContainerEnvironment,
data__displayName,
data__egressControlConfig,
data__ingressControlConfig,
data__name,
projectsId,
locationsId,
reasoningEnginesId
)
SELECT
'{{ customContainerEnvironment }}',
'{{ defaultContainerEnvironment }}',
'{{ displayName }}',
'{{ egressControlConfig }}',
'{{ ingressControlConfig }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ reasoningEnginesId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Deletes the specific SandboxEnvironmentTemplate.

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