Skip to main content

snapshots

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

Overview​

Namesnapshots
TypeResource
Idgoogle.dataflow.snapshots

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
snapshotsarrayReturned snapshots.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_jobs_snapshots_listselectprojectId, location, jobIdLists snapshots.
projects_locations_snapshots_getselectprojectId, location, snapshotIdGets information about a snapshot.
projects_locations_snapshots_listselectprojectId, locationjobIdLists snapshots.
projects_snapshots_getselectprojectId, snapshotIdlocationGets information about a snapshot.
projects_snapshots_listselectprojectIdjobId, locationLists snapshots.
projects_locations_snapshots_deletedeleteprojectId, location, snapshotIdDeletes a snapshot.
projects_delete_snapshotsdeleteprojectIdlocation, snapshotIdDeletes a snapshot.

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
jobIdstring
locationstring
projectIdstring
snapshotIdstring
jobIdstring
locationstring
snapshotIdstring

SELECT examples​

Lists snapshots.

SELECT
snapshots
FROM google.dataflow.snapshots
WHERE projectId = '{{ projectId }}' -- required
AND location = '{{ location }}' -- required
AND jobId = '{{ jobId }}' -- required
;

DELETE examples​

Deletes a snapshot.

DELETE FROM google.dataflow.snapshots
WHERE projectId = '{{ projectId }}' --required
AND location = '{{ location }}' --required
AND snapshotId = '{{ snapshotId }}' --required
;