Method: googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch
Stay organized with collections
Save and categorize content based on your preferences.
Launch a job with a FlexTemplate.
For more information about the Dataflow Flex Template configuration options, see
Configure Flex Templates.
Arguments
Parameters |
location |
string
Required. The regional endpoint to which to direct the request. E.g., us-central1, us-west1.
|
projectId |
string
Required. The ID of the Cloud Platform project that the job belongs to.
|
body |
object (LaunchFlexTemplateRequest)
Required.
|
Raised exceptions
Exceptions |
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of LaunchFlexTemplateResponse
.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation.
YAML
- launch:
call: googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch
args:
location: ...
projectId: ...
body:
launchParameter:
containerSpec:
defaultEnvironment:
additionalExperiments: ...
additionalUserLabels: ...
autoscalingAlgorithm: ...
diskSizeGb: ...
dumpHeapOnOom: ...
enableStreamingEngine: ...
flexrsGoal: ...
ipConfiguration: ...
kmsKeyName: ...
launcherMachineType: ...
machineType: ...
maxWorkers: ...
network: ...
numWorkers: ...
saveHeapDumpsToGcsPath: ...
sdkContainerImage: ...
serviceAccountEmail: ...
stagingLocation: ...
subnetwork: ...
tempLocation: ...
workerRegion: ...
workerZone: ...
zone: ...
image: ...
metadata:
description: ...
name: ...
parameters: ...
sdkInfo:
language: ...
version: ...
containerSpecGcsPath: ...
environment: ...
jobName: ...
launchOptions: ...
parameters: ...
transformNameMappings: ...
update: ...
validateOnly: ...
result: launchResult
JSON
[
{
"launch": {
"call": "googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch",
"args": {
"location": "...",
"projectId": "...",
"body": {
"launchParameter": {
"containerSpec": {
"defaultEnvironment": {
"additionalExperiments": "...",
"additionalUserLabels": "...",
"autoscalingAlgorithm": "...",
"diskSizeGb": "...",
"dumpHeapOnOom": "...",
"enableStreamingEngine": "...",
"flexrsGoal": "...",
"ipConfiguration": "...",
"kmsKeyName": "...",
"launcherMachineType": "...",
"machineType": "...",
"maxWorkers": "...",
"network": "...",
"numWorkers": "...",
"saveHeapDumpsToGcsPath": "...",
"sdkContainerImage": "...",
"serviceAccountEmail": "...",
"stagingLocation": "...",
"subnetwork": "...",
"tempLocation": "...",
"workerRegion": "...",
"workerZone": "...",
"zone": "..."
},
"image": "...",
"metadata": {
"description": "...",
"name": "...",
"parameters": "..."
},
"sdkInfo": {
"language": "...",
"version": "..."
}
},
"containerSpecGcsPath": "...",
"environment": "...",
"jobName": "...",
"launchOptions": "...",
"parameters": "...",
"transformNameMappings": "...",
"update": "..."
},
"validateOnly": "..."
}
},
"result": "launchResult"
}
}
]
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Method: googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch\n\nLaunch a job with a FlexTemplate.\n\nFor more information about the Dataflow Flex Template configuration options, see\n[Configure Flex Templates](/dataflow/docs/guides/templates/configuring-flex-templates).\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`LaunchFlexTemplateResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/dataflow/v1b3/Overview#LaunchFlexTemplateResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.flexTemplates/launch). \n\n### YAML\n\n```yaml\n- launch:\n call: googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch\n args:\n location: ...\n projectId: ...\n body:\n launchParameter:\n containerSpec:\n defaultEnvironment:\n additionalExperiments: ...\n additionalUserLabels: ...\n autoscalingAlgorithm: ...\n diskSizeGb: ...\n dumpHeapOnOom: ...\n enableStreamingEngine: ...\n flexrsGoal: ...\n ipConfiguration: ...\n kmsKeyName: ...\n launcherMachineType: ...\n machineType: ...\n maxWorkers: ...\n network: ...\n numWorkers: ...\n saveHeapDumpsToGcsPath: ...\n sdkContainerImage: ...\n serviceAccountEmail: ...\n stagingLocation: ...\n subnetwork: ...\n tempLocation: ...\n workerRegion: ...\n workerZone: ...\n zone: ...\n image: ...\n metadata:\n description: ...\n name: ...\n parameters: ...\n sdkInfo:\n language: ...\n version: ...\n containerSpecGcsPath: ...\n environment: ...\n jobName: ...\n launchOptions: ...\n parameters: ...\n transformNameMappings: ...\n update: ...\n validateOnly: ...\n result: launchResult\n```\n\n### JSON\n\n```json\n[\n {\n \"launch\": {\n \"call\": \"googleapis.dataflow.v1b3.projects.locations.flexTemplates.launch\",\n \"args\": {\n \"location\": \"...\",\n \"projectId\": \"...\",\n \"body\": {\n \"launchParameter\": {\n \"containerSpec\": {\n \"defaultEnvironment\": {\n \"additionalExperiments\": \"...\",\n \"additionalUserLabels\": \"...\",\n \"autoscalingAlgorithm\": \"...\",\n \"diskSizeGb\": \"...\",\n \"dumpHeapOnOom\": \"...\",\n \"enableStreamingEngine\": \"...\",\n \"flexrsGoal\": \"...\",\n \"ipConfiguration\": \"...\",\n \"kmsKeyName\": \"...\",\n \"launcherMachineType\": \"...\",\n \"machineType\": \"...\",\n \"maxWorkers\": \"...\",\n \"network\": \"...\",\n \"numWorkers\": \"...\",\n \"saveHeapDumpsToGcsPath\": \"...\",\n \"sdkContainerImage\": \"...\",\n \"serviceAccountEmail\": \"...\",\n \"stagingLocation\": \"...\",\n \"subnetwork\": \"...\",\n \"tempLocation\": \"...\",\n \"workerRegion\": \"...\",\n \"workerZone\": \"...\",\n \"zone\": \"...\"\n },\n \"image\": \"...\",\n \"metadata\": {\n \"description\": \"...\",\n \"name\": \"...\",\n \"parameters\": \"...\"\n },\n \"sdkInfo\": {\n \"language\": \"...\",\n \"version\": \"...\"\n }\n },\n \"containerSpecGcsPath\": \"...\",\n \"environment\": \"...\",\n \"jobName\": \"...\",\n \"launchOptions\": \"...\",\n \"parameters\": \"...\",\n \"transformNameMappings\": \"...\",\n \"update\": \"...\"\n },\n \"validateOnly\": \"...\"\n }\n },\n \"result\": \"launchResult\"\n }\n }\n]\n```"]]