- NAME
-
- gcloud alpha datalineage lineage-events create - create a Data Lineage event
- SYNOPSIS
-
-
gcloud alpha datalineage lineage-events create(LINEAGE_EVENT:--location=LOCATION--process=PROCESS--run=RUN)--start-time=START_TIME[--end-time=END_TIME] [--links=[source=SOURCE],[target=TARGET]] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create a Data Lineage event. - EXAMPLES
-
To create a lineage event with ID
my-eventunder runmy-runand processmy-process, run:gcloud alpha datalineage lineage-events create my-event --run=my-run --process=my-process --location=us-central1 --start-time="2026-06-19T10:00:00Z" --end-time="2026-06-19T10:30:00Z"To record a lineage link with column-level details:
gcloud alpha datalineage lineage-events create my-event --run=my-run --process=my-process --location=us-central1 --start-time="2026-06-19T10:00:00Z" --links="source={fullyQualifiedName=my_source_fqn,field=[col1]},target={fullyQualifiedName=my_target_fqn,field=[col2]}" - POSITIONAL ARGUMENTS
-
-
Lineage event resource - The lineage event to create. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
lineage_eventon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
This must be specified.
LINEAGE_EVENT-
ID of the lineage_event or fully qualified identifier for the lineage_event.
To set the
lineage_eventattribute:-
provide the argument
lineage_eventon the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location=LOCATION-
The location of the lineage_event.
To set the
locationattribute:-
provide the argument
lineage_eventon the command line with a fully specified name; -
provide the argument
--locationon the command line.
-
provide the argument
--process=PROCESS-
The name of the process.
To set the
processattribute:-
provide the argument
lineage_eventon the command line with a fully specified name; -
provide the argument
--processon the command line.
-
provide the argument
--run=RUN-
The name of the run.
To set the
runattribute:-
provide the argument
lineage_eventon the command line with a fully specified name; -
provide the argument
--runon the command line.
-
provide the argument
-
provide the argument
-
Lineage event resource - The lineage event to create. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
- REQUIRED FLAGS
-
--start-time=START_TIME- The start time of the lineage event.
- OPTIONAL FLAGS
-
--end-time=END_TIME- The end time of the lineage event.
--links=[source=SOURCE],[target=TARGET]-
A list of source-target links representing data lineage.
source-
Required, The source entity.
field- The fields of the source entity.
fullyQualifiedName- Required, The fully qualified name of the source entity.
target-
Required, The target entity.
field- The fields of the target entity.
fullyQualifiedName- Required, The fully qualified name of the target entity.
Shorthand Example:--links=source={field=[string],fullyQualifiedName=string},target={field=[string],fullyQualifiedName=string} --links=source={field=[string],fullyQualifiedName=string},target={field=[string],fullyQualifiedName=string}
JSON Example:--links='[{"source": {"field": ["string"], "fullyQualifiedName": "string"}, "target": {"field": ["string"], "fullyQualifiedName": "string"}}]'
File Example:--links=path_to_file.(yaml|json)
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - API REFERENCE
-
This command uses the
datalineage/v1API. The full documentation for this API can be found at: https://cloud.google.com/data-catalog - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud datalineage lineage-events creategcloud beta datalineage lineage-events create
gcloud alpha datalineage lineage-events create
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 2026-07-14 UTC.