通过本API可以获取作业和数据的血缘信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /meta/v2/lineage HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间 ID。 |
710d6a64d8**** |
| body | GetLineageInfoParams |
否 |
血缘信息参数结构体。 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
当 success 为 true,返回项目空间下指定的血缘信息;当 success 为 false,该值为空。 |
||
| requestId |
string |
请求 ID。 |
CBC799F0-AS7S-1D30-8A4F-882ED4DD**** |
| success |
boolean |
表示业务请求是否成功。 |
true |
| httpCode |
integer |
业务状态码,统一为 200;使用 success 表示业务请求是否成功。 |
200 |
| errorCode |
string |
|
"" |
| errorMessage |
string |
|
"" |
| data | LineageInfo |
血缘信息详情。 |
示例
正常返回示例
JSON格式
{
"requestId": "CBC799F0-AS7S-1D30-8A4F-882ED4DD****",
"success": true,
"httpCode": 200,
"errorCode": "\"\"",
"errorMessage": "\"\"",
"data": {
"nodes": [
{
"id": "97383",
"catalogName": "paimon",
"databaseName": "paimon-ods",
"isTemporary": false,
"connector": "paimon",
"tables": [
{
"id": "434508",
"tableName": "order-test",
"with": {
"test": "test",
"test2": 1
},
"properties": {
"test": "test",
"test2": 1
},
"columns": [
{
"id": "123ss3",
"columnName": "name",
"nullable": false,
"description": "订单用户名称",
"columnType": "string",
"columnNativeType": "string",
"createdAt": 1723537978,
"modifiedAt": 1723537978,
"creator": "userA",
"modifier": "userA"
}
]
}
]
}
],
"edges": {
"tableLineage": [
{
"source": "TableA",
"destination": "TableB",
"jobId": "664cc64d-5dea-4ad3-9ee4-8432a874****"
}
],
"columnLineage": [
{
"source": "TableA",
"destination": "TableB",
"jobId": "664cc64d-5dea-4ad3-9ee4-8432a874****"
}
]
},
"jobInfos": [
{
"id": "664cc64d-5dea-4ad3-9ee4-8432a874****\n",
"properties": {
"test": "test",
"test2": 1
}
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?