To launch a template, we recommend using projects.locations.templates.launch with a regional endpoint. Using projects.templates.launch is not recommended, because jobs launched from the template will always start in us-central1.
HTTP request
POST https://dataflow.googleapis.com/v1b3/projects/{projectId}/templates:launch
[[["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-04-30 UTC."],[[["\u003cp\u003eThis document describes how to launch a template using the \u003ccode\u003eprojects.locations.templates.launch\u003c/code\u003e method, recommending the use of regional endpoints for job execution.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003ePOST\u003c/code\u003e method directed to the specified URL with the required \u003ccode\u003eprojectId\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters such as \u003ccode\u003evalidateOnly\u003c/code\u003e, and \u003ccode\u003elocation\u003c/code\u003e are available, along with \u003ccode\u003egcsPath\u003c/code\u003e or \u003ccode\u003edynamicTemplate\u003c/code\u003e used to define the \u003ccode\u003etemplate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the \u003ccode\u003eLaunchTemplateParameters\u003c/code\u003e, and the successful response body will be a \u003ccode\u003eLaunchTemplateResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/compute\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]