View processing result lineage

Read the complete processing link of a workflow processing result, including source files, workflow calls and processing topology.

HTTP
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.

Shell
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

artifact_id

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

JSON
{
  "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

data.artifact

object

Product information.

data.artifact.artifact_id

string

Compound product identification.

data.artifact.root_asset_id

string

Root asset ID.

data.artifact.stage_asset_id

string

Stage asset ID.

data.artifact.case_id

string

Run ID.

data.artifact.workflow_version_id

string

workflow version ID.

data.artifact.raw_file_id

string

Original file ID.

data.artifact.parsed_file_id

string

Parse file ID.

data.artifact.parsed_file_available

boolean

Whether there is a clue to parse the file.

data.artifact.origin_file_name

string

Original file name.

data.artifact.origin_file_ext

string

Original file extension.

data.artifact.selected_by

string

Run selection mode.

data.artifact.selection_metadata

object

Select metadata.

data.artifact.recorded_by_workitem_id

string

Record the work item ID.

data.artifact.producer_workitem_id

string

Output work item ID.

data.artifact.producer_detection_source

string

Ways to identify output sources.

data.artifact.case_candidates

array of object

Optional run.

data.artifact.case_candidates[].case_id

string

Run ID.

data.artifact.case_candidates[].created_at

string

Creation time.

data.artifact.case_candidates[].status

string

status.

data.artifact.case_candidates[].role

string

role.

data.artifact.case_candidates[].selected

boolean

has been selected.

data.workflow

object

workflow information.

data.workflow.workflow_version_id

string

workflow version ID.

data.workflow.workflow_id

string

workflow ID.

data.workflow.version

integer

version.

data.workflow.name

string

Name.

data.workflow.root_net

string

Root run diagram.

data.workflow_invocation

object

workflow call information.

data.workflow_invocation.input

object

Run input.

data.workflow_invocation.vars

object

Run variables.

data.topology

object

Run the topology.

data.topology.nodes

array or null

node.

data.topology.edges

array or null

side.

data.topology.producer_node_id

string

Output node ID.

data.entry

object

entry.

data.entry.catalog_file_id

string

Catalog file ID.

data.entry.volume_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

JSON
{
  "code": "ErrNotFound",
  "msg": "资源不存在",
  "data": null
}

Field

Type

Required

Description

code

string

No

error code.

msg

string

No

Readable error message.

data

null

No

null in error response.

Last updated on