All Products
Search
Document Center

DataWorks:ListLineage

Last Updated:Nov 21, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:*list
*All Resources
*
    none
none

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