- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- WorkflowInvocationAction
- BigQueryAction
- NotebookAction
- DataPreparationAction
- ActionSqlDefinition
- ActionErrorTable
- ActionLoadConfig
- ActionSimpleLoadMode
- ActionIncrementalLoadMode
- State
- Try it!
Returns WorkflowInvocationActions in a given WorkflowInvocation.
HTTP request
GET https://dataform.googleapis.com/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The workflow invocation's name. Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
pageSize |
Optional. Maximum number of workflow invocations to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default. |
pageToken |
Optional. Page token received from a previous When paginating, all other parameters provided to |
Request body
The request body must be empty.
Response body
workflowInvocations.query
response message.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"workflowInvocationActions": [
{
object ( |
Fields | |
---|---|
workflowInvocationActions[] |
List of workflow invocation actions. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/bigquery
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
dataform.workflowInvocations.query
For more information, see the IAM documentation.
WorkflowInvocationAction
Represents a single action in a workflow invocation.
JSON representation |
---|
{ "target": { object ( |
Fields | |
---|---|
target |
Output only. This action's identifier. Unique within the workflow invocation. |
canonicalTarget |
Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result. |
state |
Output only. This action's current state. |
failureReason |
Output only. If and only if action's state is FAILED a failure reason is set. |
invocationTiming |
Output only. This action's timing details. |
Union field action . The action's details. action can be only one of the following: |
|
bigqueryAction |
Output only. The workflow action's bigquery action details. |
notebookAction |
Output only. The workflow action's notebook action details. |
dataPreparationAction |
Output only. The workflow action's data preparation action details. |
internalMetadata |
Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
BigQueryAction
Represents a workflow action that will run against BigQuery.
JSON representation |
---|
{ "sqlScript": string, "jobId": string } |
Fields | |
---|---|
sqlScript |
Output only. The generated BigQuery SQL script that will be executed. |
jobId |
Output only. The ID of the BigQuery job that executed the SQL in sqlScript. Only set once the job has started to run. |
NotebookAction
Represents a workflow action that will run against a Notebook runtime.
JSON representation |
---|
{ "contents": string, "jobId": string } |
Fields | |
---|---|
contents |
Output only. The code contents of a Notebook to be run. |
jobId |
Output only. The ID of the Vertex job that executed the notebook in contents and also the ID used for the outputs created in Google Cloud Storage buckets. Only set once the job has started to run. |
DataPreparationAction
Represents a workflow action that will run a Data Preparation.
JSON representation |
---|
{ "generatedSql": string, "jobId": string, // Union field |
Fields | |
---|---|
generatedSql |
Output only. The generated BigQuery SQL script that will be executed. For reference only. |
jobId |
Output only. The ID of the BigQuery job that executed the SQL in sqlScript. Only set once the job has started to run. |
Union field definition . The definition for the data preparation. definition can be only one of the following: |
|
contentsYaml |
Output only. YAML representing the contents of the data preparation. Can be used to show the customer what the input was to their workflow. |
contentsSql |
SQL definition for a Data Preparation. Contains a SQL query and additional context information. |
ActionSqlDefinition
Definition of a SQL Data Preparation
JSON representation |
---|
{ "query": string, "errorTable": { object ( |
Fields | |
---|---|
query |
The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement. |
errorTable |
Error table configuration, |
loadConfig |
Load configuration. |
ActionErrorTable
Error table information, used to write error data into a BigQuery table.
JSON representation |
---|
{
"target": {
object ( |
Fields | |
---|---|
target |
Error Table target. |
retentionDays |
Error table partition expiration in days. Only positive values are allowed. |
ActionLoadConfig
Simplified load configuration for actions
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field mode . Load mode mode can be only one of the following: |
|
replace |
Replace destination table |
append |
Append into destination table |
maximum |
Insert records where the value exceeds the previous maximum value for a column in the destination table |
unique |
Insert records where the value of a column is not already present in the destination table |
ActionSimpleLoadMode
This type has no fields.
Simple load definition
ActionIncrementalLoadMode
Load definition for incremental load modes
JSON representation |
---|
{ "column": string } |
Fields | |
---|---|
column |
Column name for incremental load modes |
State
Represents the current state of a workflow invocation action.
Enums | |
---|---|
PENDING |
The action has not yet been considered for invocation. |
RUNNING |
The action is currently running. |
SKIPPED |
Execution of the action was skipped because upstream dependencies did not all complete successfully. A terminal state. |
DISABLED |
Execution of the action was disabled as per the configuration of the corresponding compilation result action. A terminal state. |
SUCCEEDED |
The action succeeded. A terminal state. |
CANCELLED |
The action was cancelled. A terminal state. |
FAILED |
The action failed. A terminal state. |