Method: googleapis.dataflow.v1b3.projects.templates.get
Stay organized with collections
Save and categorize content based on your preferences.
Get the template associated with a template.
Arguments
Parameters |
projectId |
string
Required. The ID of the Cloud Platform project that the job belongs to.
|
gcsPath |
string
Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.
|
location |
string
The regional endpoint to which to direct the request.
|
view |
enum
The view to retrieve. Defaults to METADATA_ONLY.
|
Enum type. Can be one of the following: |
METADATA_ONLY |
Template view that retrieves only the metadata associated with the template. |
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 GetTemplateResponse
.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation.
YAML
- get:
call: googleapis.dataflow.v1b3.projects.templates.get
args:
projectId: ...
gcsPath: ...
location: ...
view: ...
result: getResult
JSON
[
{
"get": {
"call": "googleapis.dataflow.v1b3.projects.templates.get",
"args": {
"projectId": "...",
"gcsPath": "...",
"location": "...",
"view": "..."
},
"result": "getResult"
}
}
]
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.templates.get\n\nGet the template associated with a template.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`GetTemplateResponse`](/workflows/docs/reference/googleapis/dataflow/v1b3/Overview#GetTemplateResponse).\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.templates/get). \n\n### YAML\n\n```yaml\n- get:\n call: googleapis.dataflow.v1b3.projects.templates.get\n args:\n projectId: ...\n gcsPath: ...\n location: ...\n view: ...\n result: getResult\n```\n\n### JSON\n\n```json\n[\n {\n \"get\": {\n \"call\": \"googleapis.dataflow.v1b3.projects.templates.get\",\n \"args\": {\n \"projectId\": \"...\",\n \"gcsPath\": \"...\",\n \"location\": \"...\",\n \"view\": \"...\"\n },\n \"result\": \"getResult\"\n }\n }\n]\n```"]]