To get the template, we recommend using projects.locations.templates.get with a regional endpoint. Using projects.templates.get is not recommended, because only templates that are running in us-central1 are retrieved.
HTTP request
GET https://dataflow.googleapis.com/v1b3/projects/{projectId}/templates:get
[[["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 retrieve a Dataflow template using the \u003ccode\u003eprojects.locations.templates.get\u003c/code\u003e method, which is recommended over the \u003ccode\u003eprojects.templates.get\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for retrieving a template is a \u003ccode\u003eGET\u003c/code\u003e request to \u003ccode\u003ehttps://dataflow.googleapis.com/v1b3/projects/{projectId}/templates:get\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou must specify the \u003ccode\u003eprojectId\u003c/code\u003e as a path parameter, and optionally \u003ccode\u003eview\u003c/code\u003e and \u003ccode\u003elocation\u003c/code\u003e as query parameters, along with either the \u003ccode\u003egcsPath\u003c/code\u003e for the template.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful response will contain an instance of \u003ccode\u003eGetTemplateResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires one of the following OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/compute\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]