View processing result lineage¶
Read the complete processing link of a workflow processing result, including source files, workflow calls and processing topology.
GET $CLOUDSIGMA_API_BASE/lineage/artifacts/{artifact_id}/overview
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the file processing link, and obtain the processing result ID from the processing result information in the response. Prepare personal access token, target workspace ID and processing result ID that can access the target workspace.
Request parameters¶
Replace $ARTIFACT_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/overview" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
A composite identifier composed of the root asset ID and the source run ID, encoded as a path segment. |
artifact_id is a composite identifier composed of the root asset ID and the source run ID, for example, asset-001:case-001. Encode the complete value as a path segment. node_id uses the full node path, such as root.prepare, and cannot be replaced by an arbitrary display name.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"artifact": {
"artifact_id": "asset-001:case-001",
"root_asset_id": "asset-001",
"case_id": "case-001",
"parsed_file_available": true,
"case_candidates": []
},
"workflow": {
"workflow_version_id": "ver-001",
"workflow_id": "wf-001"
},
"workflow_invocation": {
"input": {},
"vars": {}
},
"topology": {
"nodes": [
{
"node_id": "node-001",
"label": "解析文件",
"status": "success"
}
],
"edges": [],
"producer_node_id": "node-001"
},
"entry": {}
}
}
Field |
Type |
Description |
|---|---|---|
|
object |
Product information. |
|
string |
Compound product identification. |
|
string |
Root asset ID. |
|
string |
Stage asset ID. |
|
string |
Run ID. |
|
string |
workflow version ID. |
|
string |
Original file ID. |
|
string |
Parse file ID. |
|
boolean |
Whether there is a clue to parse the file. |
|
string |
Original file name. |
|
string |
Original file extension. |
|
string |
Run selection mode. |
|
object |
Select metadata. |
|
string |
Record the work item ID. |
|
string |
Output work item ID. |
|
string |
Ways to identify output sources. |
|
array of object |
Optional run. |
|
string |
Run ID. |
|
string |
Creation time. |
|
string |
status. |
|
string |
role. |
|
boolean |
has been selected. |
|
object |
workflow information. |
|
string |
workflow version ID. |
|
string |
workflow ID. |
|
integer |
version. |
|
string |
Name. |
|
string |
Root run diagram. |
|
object |
workflow call information. |
|
object |
Run input. |
|
object |
Run variables. |
|
object |
Run the topology. |
|
array or null |
node. |
|
array or null |
side. |
|
string |
Output node ID. |
|
object |
entry. |
|
string |
Catalog file ID. |
|
string |
Volume ID. |
Query processing node details.
parsed_file_available in the overview only indicates that there are available clues and does not guarantee that the actual reading and verification of the node details are successful. Node details may still return 404 or 409 due to missing products or conflicting selections.
Error response¶
{
"code": "ErrNotFound",
"msg": "资源不存在",
"data": null
}
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
error code. |
|
string |
No |
Readable error message. |
|
null |
No |
null in error response. |