Method: projects.jobs.snapshot

Snapshot the state of a streaming job.

HTTP request

POST https://dataflow.googleapis.com/v1b3/projects/{projectId}/jobs/{jobId}:snapshot

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
projectId

string

The project which owns the job to be snapshotted.

jobId

string

The job to be snapshotted.

Request body

The request body contains data with the following structure:

JSON representation
{
  "ttl": string,
  "location": string,
  "snapshotSources": boolean,
  "description": string
}
Fields
ttl

string (Duration format)

TTL for the snapshot.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

location

string

The location that contains this job.

snapshotSources

boolean

If true, perform snapshots for sources which support this.

description

string

User specified description of the snapshot. Maybe empty.

Response body

If successful, the response body contains an instance of Snapshot.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/compute
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.