Lineage

List Manual Lineages On Object

get

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 · enumRequired

The type of the object to list lineages for

Possible values:
object_isstring · enumRequired

Whether the object is the source or target of the lineage

Possible values:
Responses
200
Successful Response
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 Manual Lineage

post

Create a manual lineage between two objects, returns the ID of the generated lineage

Body
Responses
200
Successful Response
application/json
Responseinteger
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 Manual Lineage

delete

Delete a manual lineage between two objects

Query parameters
source_idintegerRequired

The ID of the source object

source_typestring · enumRequired

The type of the source object

Possible values:
target_idintegerRequired

The ID of the target object

target_typestring · enumRequired

The type of the target object

Possible values:
Responses
200
Successful Response
application/json
Responseany
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