Registers entity relationships. You can register custom entity relationships.
Operation description
This operation is currently in trial. To use this operation, submit a request. After an administrator adds you to the trial list, you can call this operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LineageRelationRegisterVO | LineageRelationRegisterVO |
Yes |
The lineage registration structure. |
Entity unique identifier format: EntityType.EntityGuid.
1: EntityType identifies the entity type.
1.1 Existing entity types in DataWorks:
(1) MaxCompute table: maxcompute-table
(2) MySQL table: mysql-table
(3) EMR table: emr-table
(4) Hologres table: holodb-table
1.2 Custom entity types: custom-xxx
The following types are recommended based on your needs:
(1) Table: custom-table
(2) API: custom-api
(3) Application: custom-app
(4) Report: custom-report
(5) Dataset: custom-dataset
(6) Data source: custom-datasource
2: EntityGuid: A unique identifier for the entity within the same entity type.
For custom entities, define a unique ID as needed.
3: Entity examples:
3.1: Existing system entities in DataWorks, which can be viewed in the lineage graph on the Data Map page:
(1) maxcompute-table.project.tableName represents the unique ID of a MaxCompute table.
(2) emr-table.kadfdfaccdd4ted represents the unique ID of an EMR table.
3.2: Custom entities: Define a unique ID based on your business needs (within 50 bytes).
(1) custom-api.listUser represents a custom API entity with the unique identifier listUser.
(2) custom-table.db1.table2 represents a custom table entity with the unique identifier db1.table2.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
OpenApiMetaResultModel |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| ErrorMessage |
string |
The error message. |
The entity of lineage not exist, xxx |
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
EE50E05E-028C-182B-**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
1010210001 |
| LineageRelation |
object |
The lineage relationship object. |
|
| SrcEntityQualifiedName |
string |
The unique identifier of the source entity. |
maxcompute-table.project.table |
| DestEntityQualifiedName |
string |
The unique identifier of the destination entity. |
custom-report.month_stat_user |
| RelationshipGuid |
string |
The lineage relationship ID between entities. |
dfsldfdlsfdsaaaabbbb |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"ErrorMessage": "The entity of lineage not exist, xxx",
"RequestId": "EE50E05E-028C-182B-****",
"Success": true,
"ErrorCode": "1010210001",
"LineageRelation": {
"SrcEntityQualifiedName": "maxcompute-table.project.table",
"DestEntityQualifiedName": "custom-report.month_stat_user",
"RelationshipGuid": "dfsldfdlsfdsaaaabbbb"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.