Lineage
List any manual lineages attached to an object in the specified direction
Query parameters
idintegerRequired
The ID of the object to list lineages for
typestring · enumRequiredPossible values:
The type of the object to list lineages for
object_isstring · enumRequiredPossible values:
Whether the object is the source or target of the lineage
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /api/v1/data/catalog/lineage/manual_lineage?id=1&type=dataset&object_is=source HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
[
{
"id": 1,
"source": {
"type": "text",
"name": "text",
"id": 1,
"subtype": "bigquery",
"qual_id": "text",
"icon": "text"
},
"target": {
"type": "text",
"name": "text",
"id": 1,
"subtype": "bigquery",
"qual_id": "text",
"icon": "text"
},
"data_job": {
"type": "text",
"name": "text",
"id": 1,
"subtype": "bigquery",
"qual_id": "text",
"icon": "text"
}
}
]
Create a manual lineage between two objects, returns the ID of the generated lineage
Body
Responses
200
Successful Response
application/json
Responseinteger
422
Validation Error
application/json
post
POST /api/v1/data/catalog/lineage/manual_lineage HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"source": {
"id": 1,
"type": "dataset"
},
"target": {
"id": 1,
"type": "dataset"
},
"data_job": {
"id": 1,
"type": "data_job"
}
}
1
Delete a manual lineage between two objects
Query parameters
source_idintegerRequired
The ID of the source object
source_typestring · enumRequiredPossible values:
The type of the source object
target_idintegerRequired
The ID of the target object
target_typestring · enumRequiredPossible values:
The type of the target object
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
delete
DELETE /api/v1/data/catalog/lineage/manual_lineage?source_id=1&source_type=dataset&target_id=1&target_type=dataset HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
No content
Last updated