Skip to main content

lineage

Creates, updates, deletes, gets or lists a lineage resource.

Overview

Namelineage
TypeResource
Idazure.purview_data_map.lineage

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
baseEntityGuidstringThe GUID of the base entity.
childrenCountintegerThe number of children node.
guidEntityMapobjectThe GUID entity map.
lineageDepthintegerThe depth of lineage.
lineageDirectionstringThe enum of lineage direction. Known values are: "INPUT", "OUTPUT", and "BOTH". (INPUT, OUTPUT, BOTH)
lineageWidthintegerThe width of lineage.
parentRelationsarrayAn array of parentRelations relations.
relationsarrayAn array of lineage relations.
widthCountsobjectThe entity count in specific direction.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectguid, direction, endpointdepthGet lineage info of the entity specified by GUID.
get_by_unique_attributeselecttype_name, direction, endpointdepth, attr:qualifiedNameReturn lineage info about entity. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format attr:[attrName]=[attrValue] NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: GET /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.
get_next_pageexecguid, direction, endpointoffset, limitReturn immediate next page lineage info about entity with pagination.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
directionstringThe direction of the lineage, which could be INPUT, OUTPUT or BOTH. Known values are: "INPUT", "OUTPUT", and "BOTH". Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
guidstringThe globally unique identifier of the entity. Required.
type_namestringThe name of the type. Required.
attr:qualifiedNamestringThe qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes). Default value is None.
depthintegerThe number of hops for lineage. Default value is None.
limitintegerThe page size - by default there is no paging. Default value is None.
offsetintegerThe offset for pagination purpose. Default value is None.

SELECT examples

Get lineage info of the entity specified by GUID.

SELECT
baseEntityGuid,
childrenCount,
guidEntityMap,
lineageDepth,
lineageDirection,
lineageWidth,
parentRelations,
relations,
widthCounts
FROM azure.purview_data_map.lineage
WHERE guid = '{{ guid }}' -- required
AND direction = '{{ direction }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND depth = '{{ depth }}'
;

Lifecycle Methods

Return immediate next page lineage info about entity with pagination.

EXEC azure.purview_data_map.lineage.get_next_page 
@guid='{{ guid }}' --required,
@direction='{{ direction }}' --required,
@endpoint='{{ endpoint }}' --required,
@offset='{{ offset }}',
@limit='{{ limit }}'
;