Share via


Lineage.GetLineage Method

Definition

Overloads

GetLineage(String, LineageDirection, Nullable<Int32>, CancellationToken)

Get lineage info of the entity specified by GUID.

GetLineage(String, String, Nullable<Int32>, RequestContext)

[Protocol Method] Get lineage info of the entity specified by GUID.

GetLineage(String, LineageDirection, Nullable<Int32>, CancellationToken)

Source:
Lineage.cs

Get lineage info of the entity specified by GUID.

public virtual Azure.Response<Azure.Analytics.Purview.DataMap.AtlasLineageInfo> GetLineage(string guid, Azure.Analytics.Purview.DataMap.LineageDirection direction, int? depth = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLineage : string * Azure.Analytics.Purview.DataMap.LineageDirection * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.Purview.DataMap.AtlasLineageInfo>
override this.GetLineage : string * Azure.Analytics.Purview.DataMap.LineageDirection * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.Purview.DataMap.AtlasLineageInfo>
Public Overridable Function GetLineage (guid As String, direction As LineageDirection, Optional depth As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AtlasLineageInfo)

Parameters

guid
String

The globally unique identifier of the entity.

direction
LineageDirection

The direction of the lineage, which could be INPUT, OUTPUT or BOTH.

depth
Nullable<Int32>

The number of hops for lineage.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

guid is null.

guid is an empty string, and was expected to be non-empty.

Examples

This sample shows how to call GetLineage.

Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
Lineage client = new DataMapClient(endpoint, credential).GetLineageClient();

Response<AtlasLineageInfo> response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", LineageDirection.Input);

Applies to

GetLineage(String, String, Nullable<Int32>, RequestContext)

Source:
Lineage.cs

[Protocol Method] Get lineage info of the entity specified by GUID.

public virtual Azure.Response GetLineage(string guid, string direction, int? depth = default, Azure.RequestContext context = default);
abstract member GetLineage : string * string * Nullable<int> * Azure.RequestContext -> Azure.Response
override this.GetLineage : string * string * Nullable<int> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetLineage (guid As String, direction As String, Optional depth As Nullable(Of Integer) = Nothing, Optional context As RequestContext = Nothing) As Response

Parameters

guid
String

The globally unique identifier of the entity.

direction
String

The direction of the lineage, which could be INPUT, OUTPUT or BOTH. Allowed values: "INPUT" | "OUTPUT" | "BOTH".

depth
Nullable<Int32>

The number of hops for lineage.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

guid or direction is null.

guid is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call GetLineage and parse the result.

Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
Lineage client = new DataMapClient(endpoint, credential).GetLineageClient();

Response response = client.GetLineage("a6894eb3-81f3-829b-2adc-52f3e603411a", "INPUT");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());

Applies to