View node output version list

Lists versions of output from a specified processing node.

HTTP
GET $CLOUDSIGMA_API_BASE/lineage/artifacts/{artifact_id}/nodes/{node_id}/blocks/{block_id}/revisions

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. Prepare personal access token and target workspace ID that can access the target workspace.

Select the actual and complete target product and node execution.

Request parameters

Replace $ARTIFACT_ID, $NODE_ID, $BLOCK_ID, $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl -X GET "$CLOUDSIGMA_API_BASE/lineage/artifacts/$ARTIFACT_ID/nodes/$NODE_ID/blocks/$BLOCK_ID/revisions" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This interface is not paginated.

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.

node_id

string

Yes

Full node path, such as root.prepare.

block_id

string

Yes

Output content 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.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "artifact_id": "asset-001:case-001",
    "node_id": "root.prepare",
    "block_id": "block-001",
    "revisions": []
  }
}

Field

Type

Description

data.artifact_id

string

Processing result ID.

data.node_id

string

Full node path.

data.node_execution_id

string

Node execution ID.

data.output_artifact_id

string

Output product ID.

data.block_id

string

Output content ID.

data.revisions

array of object

A list of versions of this output.

data.revisions[].revision_id

string

Revision ID.

data.revisions[].workspace_id

string

The workspace ID to which it belongs.

data.revisions[].branch_id

string

Rerun branch ID.

data.revisions[].target_scope

string

target range. Value: final_artifact, node_output.

data.revisions[].root_asset_id

string

Root asset ID.

data.revisions[].output_artifact_id

string

Output product ID.

data.revisions[].case_id

string

Run ID.

data.revisions[].node_execution_id

string

Node execution ID.

data.revisions[].block_id

string

Output block ID.

data.revisions[].base_revision_id

string

Baseline revision ID.

data.revisions[].base_content_ref

string

Baseline content reference.

data.revisions[].base_content_hash

string

Summary of baseline content.

data.revisions[].base_effective_set_version

integer

Baseline effective revision set version. Not less than 0.

data.revisions[].revision_content_ref

string

Newly revised content cited.

data.revisions[].revision_content_hash

string

Summary of new revisions.

data.revisions[].patch_json

string

Non-empty patches are not currently supported.

data.revisions[].status

string

status. Values: active, superseded, discarded.

data.revisions[].created_by

string

Creator.

data.revisions[].created_at

string

Creation time. RFC 3339 time.

Error response

When the target is missing, the run record selection is ambiguous, or the content integrity is inconsistent, the interface returns an error. data in the business error response is null.

JSON
{
  "code": "ErrParamInvalid",
  "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