View processing node details¶
Read the configuration and running snapshot of a product-related processing node.
GET https://moi.matrixorigin.cn/newmoi/lineage/artifacts/{artifact_id}/nodes/{node_id}
Preparation before calling¶
First query the product processing link, and obtain the product ID and node ID from the response. Prepare the personal access token, target workspace ID, product ID, and node ID that have access to the target workspace.
The node ID cannot be replaced by the node display name.
Request parameters¶
artifact_idstringRequired- Processing result ID, taken from data.artifact.artifact_id in processing result lineage.
node_idstringRequired- Node ID in the processing topology, taken from data.topology.producer_node_id or data.topology.nodes[].node_id.
Request example
curl "https://moi.matrixorigin.cn/newmoi/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Successful response¶
data returns the node identity, selected run record, and run snapshot. When the intermediate node has no persistent output, empty output cannot alone prove that the node is not running.
The response fields are as follows.
codestring- OK when successful.
msgstring- OK when successful.
data.workflow.workflow_idstring- Workflow ID; returned only if there is a value.
data.workflow.workflow_version_idstring- Workflow version ID; returned only if there is a value.
data.node.node_idstring- Node ID.
data.node.labelstring- Node display label; only returned if there is a value.
data.node.workitem_type_idstring- Work item type ID; returned only if there is a value.
data.node.selected_run_idstring- Selected node running record ID; only returned if there is a value.
data.node.parallel_indexinteger- Parallel index; only returned if there is a value.
data.node.candidate_runsinteger- Optional number of running records; only returned if there is a value.
data.run.configobject- Node configuration.
data.run.runtime_inputobject- Node operation input.
data.run.runtime_varsobject- Node operation variables.
data.run.runtime_outputobject- Node operation output.
data.run.statusstring- Node running status; only returned if there is a value.
data.run.errorstring- Node running error; only returned if there is an error.
data.run.duration_msinteger- Node running time (milliseconds); only returned if there is a value.
Successful response example
{
"code": "OK",
"msg": "OK",
"data": {
"workflow": {
"workflow_id": "wf-001",
"workflow_version_id": "ver-001"
},
"node": {
"node_id": "node-001",
"label": "解析文件",
"selected_run_id": "run-001",
"candidate_runs": 1
},
"run": {
"config": {},
"runtime_input": {},
"runtime_output": {},
"status": "success",
"duration_ms": 10
}
}
}
Error response¶
codestring- Error code.
msgstring- Readable error message.
datanull- `null` in an error response.
Error response example
{
"code": "ErrNotFound",
"msg": "资源不存在",
"data": null
}
Follow-up operations¶
This interface returns node details. If you also want to view processing-result relationships, return to View processing result lineage.