- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Link
- Try it!
Retrieve a list of links connected to a specific asset. Links represent the data flow between source (upstream) and target (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them.
You can retrieve links in every project where you have the datalineage.events.get
permission. The project provided in the URL is used for Billing and Quota.
HTTP request
POST https://datalineage.googleapis.com/v1/{parent}:searchLinks
Path parameters
Parameters | |
---|---|
parent |
Required. The project and location you want search in. It takes the form |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "pageSize": integer, "pageToken": string, // Union field |
Fields | |
---|---|
page |
Optional. The maximum number of links to return in a single page of the response. A page may contain fewer links than this value. If unspecified, at most 10 links are returned. Maximum value is 100; values greater than 100 are reduced to 100. |
page |
Optional. The page token received from a previous When requesting subsequent pages of a response, remember that all parameters must match the values you provided in the original request. |
Union field criteria . The asset for which you want to retrieve links. criteria can be only one of the following: |
|
source |
Optional. Send asset information in the source field to retrieve all links that lead from the specified asset to downstream assets. |
target |
Optional. Send asset information in the target field to retrieve all links that lead from upstream assets to the specified asset. |
Response body
Response message for locations.searchLinks
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"links": [
{
object ( |
Fields | |
---|---|
links[] |
The list of links for a given asset. Can be empty if the asset has no relations of requested type (source or target). |
next |
The token to specify as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
datalineage.locations.searchLinks
For more information, see the IAM documentation.
Link
Links represent the data flow between source (upstream) and target (downstream) assets in transformation pipelines.
Links are created when LineageEvents record data transformation between related assets.
JSON representation |
---|
{ "name": string, "source": { object ( |
Fields | |
---|---|
name |
Output only. Immutable. The name of the link. Format: |
source |
The pointer to the entity that is the source of this link. |
target |
The pointer to the entity that is the target of this link. |
start |
The start of the first event establishing this link. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
The end of the last event establishing this link. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |