Skip to main content

sandbox_environment_snapshots

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

Overview

Namesandbox_environment_snapshots
TypeResource
Idgoogle.aiplatform.sandbox_environment_snapshots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the SandboxEnvironmentSnapshot. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentSnapshots/{sandbox_environment_snapshot}
createTimestring (google-datetime)Output only. The timestamp when this SandboxEnvironmentSnapshot was created.
displayNamestringRequired. The display name of the SandboxEnvironmentSnapshot.
expireTimestring (google-datetime)Optional. Timestamp in UTC of when this SandboxEnvironmentSnapshot is considered expired. This is always provided on output, regardless of what expiration was sent on input.
ownerstringOptional. Owner information for this sandbox snapshot. Different owners will have isolations on snapshot storage and identity. If not set, snapshot will be created as the default owner.
parentSnapshotstringOutput only. The resource name of the parent SandboxEnvironmentSnapshot. Empty if this is a root Snapshot (the first snapshot from a newly created sandbox). Can be used to reconstruct the whole ancestry tree of snapshots.
postSnapshotActionstringOptional. Input only. Action to take on the source SandboxEnvironment after the snapshot is taken. This field is only used in CreateSandboxEnvironmentSnapshotRequest and it is not stored in the resource. (POST_SNAPSHOT_ACTION_UNSPECIFIED, RUNNING, PAUSE)
sizeBytesstring (int64)Optional. Output only. Size of the snapshot data in bytes.
sourceSandboxEnvironmentstringRequired. The resource name of the source SandboxEnvironment this snapshot was taken from.
ttlstring (google-duration)Optional. Input only. The TTL for the sandbox environment snapshot. The expiration time is computed: now + TTL.
updateTimestring (google-datetime)Output only. The timestamp when this SandboxEnvironment was most recently updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreasoningEnginesId, sandboxEnvironmentSnapshotsIdGets details of the specific SandboxEnvironmentSnapshot.
listselectreasoningEnginesIdpageToken, filter, pageSizeLists SandboxEnvironmentSnapshots in a given reasoning engine.
deletedeletereasoningEnginesId, sandboxEnvironmentSnapshotsIdDeletes the specific SandboxEnvironmentSnapshot.

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
sandboxEnvironmentSnapshotsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of the specific SandboxEnvironmentSnapshot.

SELECT
name,
createTime,
displayName,
expireTime,
owner,
parentSnapshot,
postSnapshotAction,
sizeBytes,
sourceSandboxEnvironment,
ttl,
updateTime
FROM google.aiplatform.sandbox_environment_snapshots
WHERE reasoningEnginesId = '{{ reasoningEnginesId }}' -- required
AND sandboxEnvironmentSnapshotsId = '{{ sandboxEnvironmentSnapshotsId }}' -- required
;

DELETE examples

Deletes the specific SandboxEnvironmentSnapshot.

DELETE FROM google.aiplatform.sandbox_environment_snapshots
WHERE reasoningEnginesId = '{{ reasoningEnginesId }}' --required
AND sandboxEnvironmentSnapshotsId = '{{ sandboxEnvironmentSnapshotsId }}' --required
;