Skip to main content

snapshots

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

Overview

Namesnapshots
TypeResource
Idgoogle.dataflow.snapshots

Fields

NameDatatypeDescription
idstringThe unique ID of this snapshot.
descriptionstringUser specified description of the snapshot. Maybe empty.
creationTimestringThe time this snapshot was created.
diskSizeBytesstringThe disk byte size of the snapshot. Only available for snapshots in READY state.
projectIdstringThe project this snapshot belongs to.
pubsubMetadataarrayPub/Sub snapshot metadata.
regionstringCloud region where this snapshot lives in, e.g., "us-central1".
sourceJobIdstringThe job this snapshot was created from.
statestringState of the snapshot.
ttlstringThe time after which this snapshot will be automatically deleted.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_jobs_snapshots_listSELECTjobId, location, projectIdLists snapshots.
projects_locations_snapshots_getSELECTlocation, projectId, snapshotIdGets information about a snapshot.
projects_locations_snapshots_listSELECTlocation, projectIdLists snapshots.
projects_snapshots_getSELECTprojectId, snapshotIdGets information about a snapshot.
projects_snapshots_listSELECTprojectIdLists snapshots.
projects_delete_snapshotsDELETEprojectIdDeletes a snapshot.
projects_locations_snapshots_deleteDELETElocation, projectId, snapshotIdDeletes a snapshot.

SELECT examples

Lists snapshots.

SELECT
id,
description,
creationTime,
diskSizeBytes,
projectId,
pubsubMetadata,
region,
sourceJobId,
state,
ttl
FROM google.dataflow.snapshots
WHERE projectId = '{{ projectId }}';

DELETE example

Deletes the specified snapshots resource.

/*+ delete */
DELETE FROM google.dataflow.snapshots
WHERE projectId = '{{ projectId }}';