View file processing lineage

View its associated workflow processing, its generated processing results, and processing topology from the Catalog file.

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

Shell
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

file_id

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

case_id

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

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": "解析文件"
        }
      ],
      "edges": [],
      "producer_node_id": "node-001"
    },
    "entry": {
      "catalog_file_id": "file-001"
    }
  }
}

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 result link.

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