# Dataflow API

Manages Google Cloud Dataflow projects on Google Cloud Platform.

- [REST Resource: v1b3.projects.jobs](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.jobs)
- [REST Resource: v1b3.projects.jobs.messages](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.jobs.messages)
- [REST Resource: v1b3.projects.locations.flexTemplates](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.locations.flexTemplates)
- [REST Resource: v1b3.projects.locations.jobs](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.locations.jobs)
- [REST Resource: v1b3.projects.locations.jobs.messages](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.locations.jobs.messages)
- [REST Resource: v1b3.projects.locations.jobs.stages](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.locations.jobs.stages)
- [REST Resource: v1b3.projects.locations.templates](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.locations.templates)
- [REST Resource: v1b3.projects.templates](https://docs.cloud.google.com/dataflow/docs/reference/rest#v1b3.projects.templates)

## Service: dataflow.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://dataflow.googleapis.com/$discovery/rest?version=v1b3>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://dataflow.googleapis.com`

### Regional service endpoint

A regional service endpoint is a base URL that specifies the network address of an API service in a single region. A service that is available in multiple regions might have multiple regional endpoints. Select a location to see its regional service endpoint for this service.
<button value="global" default="">global</button>   
- `https://dataflow.googleapis.com`

<br />

## REST Resource: [v1b3.projects.jobs](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/aggregated` | `GET /v1b3/projects/{projectId}/jobs:aggregated` List the jobs of a project across all regions. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/create` | `POST /v1b3/projects/{projectId}/jobs` Creates a Dataflow job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/get` | `GET /v1b3/projects/{projectId}/jobs/{jobId}` Gets the state of the specified Cloud Dataflow job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/getMetrics` | `GET /v1b3/projects/{projectId}/jobs/{jobId}/metrics` Request the job status. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/list` | `GET /v1b3/projects/{projectId}/jobs` List the jobs of a project. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/snapshot` | `POST /v1b3/projects/{projectId}/jobs/{jobId}:snapshot` Snapshot the state of a streaming job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/update` | `PUT /v1b3/projects/{projectId}/jobs/{jobId}` Updates the state of an existing Cloud Dataflow job. |

## REST Resource: [v1b3.projects.jobs.messages](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs.messages)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs.messages/list` | `GET /v1b3/projects/{projectId}/jobs/{jobId}/messages` Request the job status. |

## REST Resource: [v1b3.projects.locations.flexTemplates](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.flexTemplates)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.flexTemplates/launch` | `POST /v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch` Launch a job with a FlexTemplate. |

## REST Resource: [v1b3.projects.locations.jobs](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create` | `POST /v1b3/projects/{projectId}/locations/{location}/jobs` Creates a Dataflow job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/get` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}` Gets the state of the specified Cloud Dataflow job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/getExecutionDetails` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/executionDetails` Request detailed information about the execution status of the job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/getMetrics` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics` Request the job status. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/list` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs` List the jobs of a project. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/snapshot` | `POST /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot` Snapshot the state of a streaming job. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/update` | `PUT /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}` Updates the state of an existing Cloud Dataflow job. |

## REST Resource: [v1b3.projects.locations.jobs.messages](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs.messages)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs.messages/list` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages` Request the job status. |

## REST Resource: [v1b3.projects.locations.jobs.stages](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs.stages)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs.stages/getExecutionDetails` | `GET /v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/stages/{stageId}/executionDetails` Request detailed information about the execution status of a stage of the job. |

## REST Resource: [v1b3.projects.locations.templates](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.templates)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.templates/create` | `POST /v1b3/projects/{projectId}/locations/{location}/templates` Creates a Cloud Dataflow job from a template. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.templates/get` | `GET /v1b3/projects/{projectId}/locations/{location}/templates:get` Get the template associated with a template. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.templates/launch` | `POST /v1b3/projects/{projectId}/locations/{location}/templates:launch` Launches a template. |

## REST Resource: [v1b3.projects.templates](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/create` | `POST /v1b3/projects/{projectId}/templates` Creates a Cloud Dataflow job from a template. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/get` | `GET /v1b3/projects/{projectId}/templates:get` Get the template associated with a template. |
| `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/launch` | `POST /v1b3/projects/{projectId}/templates:launch` Launches a template. |