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 | |
---|---|
project |
The project which owns the job to be snapshotted. |
job |
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 |
TTL for the snapshot. A duration in seconds with up to nine fractional digits, ending with ' |
location |
The location that contains this job. |
snapshot |
If true, perform snapshots for sources which support this. |
description |
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.