Dela via


PurviewLineages.GetLineageGraphAsync Method

Definition

Get lineage info of the entity specified by GUID.

public virtual System.Threading.Tasks.Task<Azure.Response> GetLineageGraphAsync (string guid, string direction, int? depth = default, int? width = default, bool? includeParent = default, bool? getDerivedLineage = default, Azure.RequestContext context = default);
abstract member GetLineageGraphAsync : string * string * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetLineageGraphAsync : string * string * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetLineageGraphAsync (guid As String, direction As String, Optional depth As Nullable(Of Integer) = Nothing, Optional width As Nullable(Of Integer) = Nothing, Optional includeParent As Nullable(Of Boolean) = Nothing, Optional getDerivedLineage As Nullable(Of Boolean) = Nothing, Optional context As RequestContext = Nothing) As Task(Of 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: "BOTH" | "INPUT" | "OUTPUT".

depth
Nullable<Int32>

The number of hops for lineage.

width
Nullable<Int32>

The number of max expanding width in lineage.

includeParent
Nullable<Boolean>

True to include the parent chain in the response.

getDerivedLineage
Nullable<Boolean>

True to include derived lineage in the response.

context
RequestContext

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

Returns

Exceptions

guid or direction is null.

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

Remarks

Schema for Response Body:

{
              baseEntityGuid: string,
              guidEntityMap: Dictionary<string, AtlasEntityHeader>,
              widthCounts: Dictionary<string, Dictionary<string, AnyObject>>,
              lineageDepth: number,
              lineageWidth: number,
              includeParent: boolean,
              childrenCount: number,
              lineageDirection: "INPUT" | "OUTPUT" | "BOTH",
              parentRelations: [
                {
                  childEntityId: string,
                  relationshipId: string,
                  parentEntityId: string
                }
              ],
              relations: [
                {
                  fromEntityId: string,
                  relationshipId: string,
                  toEntityId: string
                }
              ]
            }

Schema for Response Error:

{
              requestId: string,
              errorCode: string,
              errorMessage: string
            }

Applies to