Get the template associated with a template.
Arguments
Parameters | |
---|---|
location |
Required. The regional endpoint to which to direct the request.
|
projectId |
Required. The ID of the Cloud Platform project that the job belongs to.
|
gcsPath |
Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.
|
view |
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.locations.templates.get args: location: ... projectId: ... gcsPath: ... view: ... result: getResult
JSON
[ { "get": { "call": "googleapis.dataflow.v1b3.projects.locations.templates.get", "args": { "location": "...", "projectId": "...", "gcsPath": "...", "view": "..." }, "result": "getResult" } } ]