View file processing lineage¶
View its associated workflow processing, its generated processing results, and processing topology from the Catalog file.
GET $CLOUDSIGMA_API_BASE/lineage/catalog-files/{file_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 check the file product ](../../resource-center/catalog/list-file-artifacts.md#成功响应), and then call this interface only when data.has_artifact in the response is true. Prepare personal access token, target workspace ID and Catalog file ID that can access the target workspace.
file_id must be a Catalog file that has been processed by the workflow and registered with the DataAsset. Raw files that are simply uploaded or mounted to a Volume but have not been processed will not automatically generate a processing link.
Request parameters¶
Replace $FILE_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/lineage/catalog-files/$FILE_ID/overview" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Catalog file ID. |
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.
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Associated case ID. |
Run from source in file record when run selection is omitted. selected_by does not fully distinguish whether the caller explicitly selected or not. The absence of a status field also cannot alone be interpreted as an unknown run.
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": "解析文件"
}
],
"edges": [],
"producer_node_id": "node-001"
},
"entry": {
"catalog_file_id": "file-001"
}
}
}
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. |
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. |