All Products
Search
Document Center

DataWorks:ListLineage

Last Updated:Oct 17, 2024

Queries the ancestor or descendant lineage of an entity.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EntityQualifiedNamestringYes

The unique identifier of the entity.

maxcompute-table.project.table
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

next-token-from-previous-request
KeywordstringNo

The keyword of the entity name.

name-keyword
DirectionstringYes

The lineage type. Valid values:
up: ancestor lineage
down: descendant lineage

up
PageSizeintegerNo

The number of entries per page. Maximum value: 100.

10

Response parameters

ParameterTypeDescriptionExample
object

OpenApiMetaResultModel

HttpStatusCodeinteger

The HTTP status code.

200
ErrorMessagestring

The error message.

qualifiedName should be in format as entity-table.entity-guid
RequestIdstring

The request ID.

64B-587A-8CED-969E1973887FXXX-TT
Successboolean

Indicates whether the request was successful. Valid values:

true

false

true
ErrorCodestring

The error code.

1010040007
Dataobject

The structure returned.

NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results.

nextTokenFromRequest-xxxsd-ff
DataEntityListarray<object>

The array of the entity structure.

DataEntityListobject
EntityEntity

The information about the entity.

CreateTimestamplong

The time when the lineage was generated.

1686215809269
RelationListarray<object>

The array of the relationship structure.

RelationListobject
Guidstring

The unique relationship ID.

aaabbccddguid
Datasourcestring

The name of the data source.

mysql
Typestring

The task type, which is used to describe the relationship between entities, such as SQL-based calculation, mapping based on report fields, or API operation definition.

sql
Channelstring

The data channel. Valid values:

FIRST_PARTY: DataWorks platformTHIRD_PARTY: user registration
THIRD_PARTY

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "ErrorMessage": "qualifiedName should be in format as entity-table.entity-guid",
  "RequestId": "64B-587A-8CED-969E1973887FXXX-TT",
  "Success": true,
  "ErrorCode": "1010040007",
  "Data": {
    "NextToken": "nextTokenFromRequest-xxxsd-ff",
    "DataEntityList": [
      {
        "Entity": {
          "QualifiedName": "maxcompute_table.563f0357118d05ef145d6bddf2966cc23e86ca8f2f013f915e565afdf09f7a23",
          "TenantId": 12345,
          "EntityContent": {
            "test": "test",
            "test2": 1
          }
        },
        "CreateTimestamp": 1686215809269,
        "RelationList": [
          {
            "Guid": "aaabbccddguid",
            "Datasource": "mysql",
            "Type": "sql",
            "Channel": "THIRD_PARTY"
          }
        ]
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history