Forprojects.regions.workflowTemplates.get, the resource name of the template has the following format:projects/{projectId}/regions/{region}/workflowTemplates/{template_id}
Forprojects.locations.workflowTemplates.get, the resource name of the template has the following format:projects/{projectId}/locations/{location}/workflowTemplates/{template_id}
Authorization requires the followingIAMpermission on the specified resourcename:
dataproc.workflowTemplates.get
Query parameters
Parameters
version
integer
Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.
If unspecified, retrieves the current version.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofWorkflowTemplate.
[[["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-06-20 UTC."],[[["\u003cp\u003eThis API call retrieves a workflow template, either the latest version or a specific previously instantiated version.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a GET method with a specific URL structure, including parameters within the path.\u003c/p\u003e\n"],["\u003cp\u003eThe required \u003ccode\u003ename\u003c/code\u003e path parameter specifies the resource name of the workflow template and requires a specific IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eversion\u003c/code\u003e query parameter allows users to request a specific workflow template version.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response returns a \u003ccode\u003eWorkflowTemplate\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.workflowTemplates.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves the latest workflow template.\n\nCan retrieve previously instantiated template by specifying optional version parameter.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/{name=projects/*/locations/*/workflowTemplates/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [WorkflowTemplate](/dataproc/docs/reference/rest/v1/projects.locations.workflowTemplates#WorkflowTemplate).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]