snapshots
Creates, updates, deletes, gets or lists a snapshots
resource.
Overview
Name | snapshots |
Type | Resource |
Id | google.dataflow.snapshots |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The unique ID of this snapshot. |
description | string | User specified description of the snapshot. Maybe empty. |
creationTime | string | The time this snapshot was created. |
diskSizeBytes | string | The disk byte size of the snapshot. Only available for snapshots in READY state. |
projectId | string | The project this snapshot belongs to. |
pubsubMetadata | array | Pub/Sub snapshot metadata. |
region | string | Cloud region where this snapshot lives in, e.g., "us-central1". |
sourceJobId | string | The job this snapshot was created from. |
state | string | State of the snapshot. |
ttl | string | The time after which this snapshot will be automatically deleted. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_jobs_snapshots_list | SELECT | jobId, location, projectId | Lists snapshots. |
projects_locations_snapshots_get | SELECT | location, projectId, snapshotId | Gets information about a snapshot. |
projects_locations_snapshots_list | SELECT | location, projectId | Lists snapshots. |
projects_snapshots_get | SELECT | projectId, snapshotId | Gets information about a snapshot. |
projects_snapshots_list | SELECT | projectId | Lists snapshots. |
projects_delete_snapshots | DELETE | projectId | Deletes a snapshot. |
projects_locations_snapshots_delete | DELETE | location, projectId, snapshotId | Deletes 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 }}';